Reverse Geocoder – Lat/Long to Country, State, City & Time Zone
Pricing
from $0.20 / 1,000 coordinate resolveds
Reverse Geocoder – Lat/Long to Country, State, City & Time Zone
Bulk offline reverse geocoding: turn latitude/longitude into country (ISO codes), state/province, nearest city or town, IANA time zone and UTC offset. Lists, CSV/JSON files or Apify datasets (e.g. Google Maps results). No API key. City level, no street addresses. $0.20 per 1,000.
Pricing
from $0.20 / 1,000 coordinate resolveds
Rating
0.0
(0)
Developer
Cemal Atakli
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Reverse Geocoder – Bulk Latitude/Longitude to Country, State, City & Time Zone
Turn latitude/longitude coordinates into country, state/province, nearest city or town and time zone – in bulk, fully offline. Paste a list, point it at a CSV/JSON file, or pick an Apify dataset (for example the results of a Google Maps scraper) and get one clean row per point.
- Country: ISO 3166-1 alpha-2 and alpha-3 code, English name, continent, EU member flag
- State / province (first-level division): local and English name, ISO 3166-2 code (e.g.
US-NY,TR-34), type - Nearest populated place (towns with 15,000+ inhabitants): name, region, country, population, its coordinates and the distance in km
- Time zone: IANA name (
Europe/Paris), current UTC offset (+01:00), offset in minutes, daylight-saving flag inOceanflag for points at sea
No Google, no Nominatim, no API key, no rate limits: all data is bundled in the Actor, so 100,000 points take well under a minute.
City level only – no street addresses. This Actor tells you which country, state and nearby town a point is in. It does not return house numbers, streets or postcodes. If you need street addresses, use a street-level geocoding service.
What this listing does that our other geo Actors do not
| Actor | Direction | Coverage |
|---|---|---|
| Reverse Geocoder (this one) | coordinates → country / state / town / time zone | worldwide, offline, bulk |
| Address Geocoder | address → coordinates (and US census geographies) | US and France official geocoders |
| Image Metadata Extractor | photo EXIF GPS → nearest city, plus camera data | photos only |
| Bulk IP Lookup | IP address → network, country | IPs, not coordinates |
Use cases
- Enrich scraped places: add ISO country, state code and time zone to Google Maps / OpenStreetMap / store-locator results before loading them into a CRM.
- Lead routing by region or time zone: assign leads to sales territories, schedule calls in the prospect's local time.
- Clean location data: find rows with swapped or impossible coordinates,
0,0placeholders and points in the ocean. - Analytics: aggregate GPS events, IoT devices, delivery stops or photo locations by country and state.
- Compliance: flag EU locations (
isEU) for GDPR-related processing.
Input
Use any combination of these sources:
| Field | What it is |
|---|---|
coordinates | List of latitude, longitude lines. Also accepted: 48.8584 N, 2.2945 E, degrees-minutes-seconds 48°51'30"N 2°17'40"E, lat;lon (decimal commas OK), Google Maps links (…/@41.89,12.49,17z, !3d…!4d…). |
datasetId | An Apify dataset (picker). Coordinates are detected automatically in location.lat / location.lng (Google Maps scrapers), lat / lng / lon, latitude / longitude, GeoJSON Point geometry or a text field like coordinates. |
fileUrl | Public CSV (comma, semicolon, tab or pipe), JSON array or JSON Lines file, up to 500 MB. Same column detection. |
latitudeField / longitudeField / coordinatesField | Optional explicit field names (dots for nested fields, e.g. location.lat). |
keepFields | Fields copied from each item into source so you can join results back (default: title, name, id, placeId, url). |
skipDuplicates | Identical points are resolved and charged once (default on). |
zeroIsMissing | 0, 0 is treated as a missing value (default on). |
maxPlaceDistanceKm | Nearest place is reported only within this distance (default 150 km). |
coastToleranceKm | Points just off the coastline (beach, pier, harbour) still get the country/state within this distance (default 3 km). |
onlyResolved, maxItems | Leave out free rows; cap the number of inputs. |
Example:
{"datasetId": "YOUR_GOOGLE_MAPS_RUN_DATASET_ID","keepFields": ["title", "placeId", "address"]}
Output
One row per input point (duplicates skipped), in input order (inputIndex):
{"inputIndex": 0,"input": "48.8584, 2.2945","latitude": 48.8584,"longitude": 2.2945,"result": "resolved","countryCode": "FR","countryCode3": "FRA","countryName": "France","continent": "Europe","isEU": true,"inOcean": false,"countryMatch": "inside","stateName": "Paris","stateNameEn": "Paris","stateCode": "FR-75","stateType": "Metropolitan department","nearestPlace": "Paris 16 Passy","nearestPlaceRegion": "Île-de-France","nearestPlaceCountryCode": "FR","nearestPlacePopulation": 159386,"nearestPlaceLatitude": 48.8637,"nearestPlaceLongitude": 2.2769,"distanceKm": 1.42,"timezone": "Europe/Paris","utcOffset": "+01:00","utcOffsetMinutes": 60,"isDst": false,"source": null,"error": null}
result is resolved (charged), noMatch (open ocean, no country or town nearby – free) or invalid (unreadable or out-of-range input – free, with the reason in error). The run summary (counts per country, attribution) is in the OUTPUT record of the key-value store. Export as JSON, CSV, Excel or via API.
Pricing
Pay per event – you only pay for points that were resolved:
| Event | Price |
|---|---|
| Coordinate resolved (country or nearest place found) | $0.0002 ($0.20 per 1,000) |
| Actor start | $0.00005 |
Free: invalid coordinates, 0,0 placeholders, duplicates, and open-ocean points with nothing nearby. Set a maximum total charge on the run and the Actor stops cleanly when it is reached (the summary shows how many points were not processed).
Comparison (Apify Store, November 2026): Nominatim/OSM-based actors charge about $0.001–0.002 per point plus start fees and depend on public servers whose usage policy forbids bulk use; Google-based scrapers charge ~$0.0001 but return street addresses scraped from Google. This Actor is the offline, ToS-clean option for country/state/town/time-zone enrichment.
Accuracy and limits (please read)
- City level, no street addresses, no postcodes.
- Nearest place = nearest town with 15,000+ inhabitants (GeoNames cities15000). In rural areas it can be 20–40 km away (or more in deserts and the Arctic); always check
distanceKm. It is the nearest point, not the municipality that contains the coordinate, and can lie across a border (comparenearestPlaceCountryCodewithcountryCode). - Country and state come from polygons (Natural Earth 1:10m, simplified to ~300 m), so they are usually right even near a border, but points within a few hundred metres of a border or coastline may be assigned to the neighbour.
countryMatch: coastalmarks points matched by the coast tolerance. - "State" means the first-level division as mapped by Natural Earth. This is states/provinces in most countries, but e.g. departments in France and counties/unitary authorities in the UK. Some small divisions have no ISO 3166-2 code (
stateCode: null). - Disputed areas follow Natural Earth's de-facto view and may not match your preferred policy.
- Time zone offsets are for the moment of the run (DST included). Ocean points get nautical
Etc/GMT±Nzones.
FAQ
Can it handle millions of points? Yes. Inputs are streamed in batches of 1,000; memory stays at ~250 MB. Very large runs are limited mostly by dataset write speed.
Do I need an API key? No. Nothing is sent to any geocoding service. The only network request is downloading your fileUrl, if you use one (private-network addresses are refused).
My dataset uses other field names. Set latitudeField and longitudeField (e.g. geo.latitude), or coordinatesField for a single "lat, lon" text field.
Why is a point flagged invalid? Latitude outside -90..90 (often swapped with longitude), longitude outside -180..180, 0,0, or text that does not contain two coordinates. These rows are free.
Use with AI agents / Apify MCP
Through the Apify MCP server an AI agent can call gazidev/reverse-geocoder with {"coordinates": ["51.5007, -0.1246"]} and read back country, state, town and time zone – useful for "what time is it there?", "which country is this GPS point in?" or enriching a scraped dataset inside an agent workflow.
Data sources and attribution
- Places: GeoNames cities15000, licensed CC BY 4.0.
- Country and state borders: Natural Earth admin-0 / admin-1, public domain.
- Time zones: timezonefinder (MIT), boundary data from timezone-boundary-builder (ODbL).
The data is bundled at build time; GeoNames and OSM servers are never contacted by this Actor.