Location

Explore what information is available for locations.

This type represents specific geographic positions or areas, such as a point on a map or a region, typically indicating temporary locations like where a user is accessing a website from.

All properties in this type are optional and represent different levels of accuracy, which may vary depending on the source of information — such as GPS or IP — and the user's privacy settings.

Generally, if more specific properties are available, less specific properties are likely to be available as well. For example, the city is usually unavailable when the state is unknown.

Croct's mascot neutral
Should I use state or region?

Some countries use regions instead of states for administrative divisions, so we included both to let you choose the best option for your scenario.

Properties

These are the available properties:

continent
map<string|null>

The continent where the location is situated.

name
string|null

The name of the continent in English.

For example, "North America" or "South America".

code
Continent|null

The continent as a two-letter code.

For example, "NA" for North America.

continentName

An alias for the continent.name property.

continentCode
Continent|null

An alias for the continent.code property.

country
map<string|null>

The country where the location is situated.

name
string|null

The name of the country in English.

For example, "United States" or "Brazil".

code

The country code following the ISO 3166-1 alpha-2 standard, in upper case.

For example, "US" for United States.

countryName

An alias for the country.name property.

countryCode

An alias for the country.code property.

region
map<string|null>

The primary administrative division within the country, such as a state or province.

name
string|null

The name of the region in English.

For example, "California" or "Rio de Janeiro".

code

The code is based on the ISO 3166-2 standard or official codes whenever available, in upper case.

For example, "CA" for California.

regionName

An alias for the region.name property.

regionCode

An alias for the region.code property.

state(optional)
map<string|null>

An alias for the region property.

name
string|null

An alias for the region.name property.

code

An alias for the region.code property.

stateName

An alias for the region.name property.

stateCode

An alias for the region.code property.

city
map<string|null>

The incorporated city or town political entity.

name
string|null

The name of the city in English.

For example, "New York", "Mexico City" or "São Paulo".

cityName(optional)

An alias for the city.name property.

coordinates
map<number|null>

The geographic coordinates of the location.

latitude
number|null

The latitude of the location as a decimal.

For example, 36.7783 or -23.5475.

longitude

The longitude of the location as a decimal.

For example, 119.4179 or -46.63611.

latitude

An alias for the coordinates.latitude property.

longitude

An alias for the coordinates.longitude property.

currency
map<string|null>

The official currency used in the location.

name
string|null

The name of the currency in English.

For example, "US Dollar" or "Real".

code

The currency code following the ISO 4217 standard, in upper case.

For example, "USD" or "BRL".

currencyCode

An alias for the currency.code property.

currencyName

An alias for the currency.name property.

timeZone

The time zone name as specified in the IANA Time Zone Database.

For example, "America/New_York" or "America/Sao_Paulo".

languages

A list of locale codes of the languages spoken in the location as specified in the ISO 639-1 and ISO 3166-1.

For example, ["en", "en-CA", "fr-CA"] indicates that English and French are spoken in Canada, with English being more prevalent.

phoneCode

The international dialing code for this location.

For example, "+1" for the United States or Canada, or "+55" for Brazil.

postalCode

The postal or ZIP code associated with the location.

The value follows a valid format (e.g., "90210", "SW1A 1AA", or "28430-000"), but may represent an approximate or example code for the region rather than an exact or specific address.

In some areas, it may reflect the beginning of a postal range.

population

The approximate population within the boundaries of the returned location.

If the location refers to a city, this value reflects the city's population. If it refers to a broader area, such as a region, it reflects the population of that region.

tags

One or more tags describing the location, such as natural features or climate.

For example, a lake in a warm, touristic area might include tags like "warm", "lake" and "tourism".

Continent

These are the possible values and what they represent:

ValueDescription
AFAfrica
ANAntarctica
ASAsia
EUEurope
NANorth America
OCOceania
SASouth America

Tags

These are the possible tags grouped by category.

Place

Tags related to the type of place or area:

TagDescription
urbanRelated to cities or densely populated areas
residentialAreas where housing and living spaces are concentrated
ruralCountryside or sparsely populated regions outside urban centers
remoteLocations distant from major settlements or infrastructure
parkPublic or protected areas with greenery or open space
islandLand surrounded by water on all sides

Society

Tags denoting social roles, institutions, and public services:

TagDescription
governmentLocations related to public services, institutions, or administration
politicsPlaces associated with political activity or governance
militaryLocations used for defense, training, or armed service operations
religionSites with religious or spiritual significance
educationPlaces where people study and learn

Economy

Tags related to economic activity:

TagDescription
businessAreas with commercial presence or economic activity
industryZones involving manufacturing, logistics, or production
agricultureAreas with fields, pastures, or crops

Infrastructure

Tags related to transportation, utilities, and built environments:

TagDescription
transportLocations supporting transit or logistics
facilityPlaces built for specific purposes, often supporting operations or services
waterwayNavigable or managed water routes such as rivers or canals
airportLocations related to aircraft takeoff and landing
roadInfrastructure for vehicular travel
railwayLocations involving rail transport infrastructure
seaportPorts where ships may dock, load, or unload goods or passengers

Sport

Tags for areas commonly used for sports and outdoor activities:

TagDescription
fishingAreas where fishing or related activity may take place
surfingCoastal areas with waves that may support surfing
swimmingAreas where people may swim or engage with water safely
hikingOutdoor spaces where hiking might occur
skiingAreas where snow allows skiing or similar activities

Attraction

Tags highlighting cultural, recreational, or scenic appeal:

TagDescription
entertainmentPlaces that can offer cultural or recreational activities
sceneryLocations appreciated for their natural beauty or view
landmarkNotable spots or features that help identify a place
recreationAreas intended for outdoor activities, sports, or leisure
tourismPlaces people visit for culture, nature, or history

Nature

Tags describing natural features and landscapes:

TagDescription
mountainElevated terrain rising above surroundings
lakeBodies of still water surrounded by land
riverNaturally flowing body of water that may lead to lakes or oceans
canyonNatural formations shaped by erosion
desertDry regions with little rainfall or vegetation
oceanCoastal or open-sea areas facing large saltwater bodies
coastEdges of land meeting a sea or ocean
beachShoreline with sand or pebbles, often near water bodies
forestAreas with dense tree cover

Weather

Tags related to climate and weather conditions:

TagDescription
warmRegions with generally tropical or temperate climates
coldRegions characterized by low temperatures
snowyAreas with frequent snow or icy conditions