{"uid":"cap_t8BKs6soJHCDjthfJClBS","slug":"reverse-geocoding-api-dd33cc60","name":"Reverse Geocoding API","description":"Find the nearest city or town to a latitude and longitude. Returns name, country, distance in km, population, IANA timezone and GeoNames ID. Useful for labelling GPS points, timezone lookup from coordinates and grouping locations by city. Invalid or unknown inputs return an error and are not charged.","url":"https://x402-weather.onrender.com/reverse-geocode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude, -90 to 90."},"lon":{"type":"number","description":"Longitude, -180 to 180."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HbCbjkpggzbgV-Ko185GC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a latitude/longitude coordinate pair into the nearest city or town, returning name, country, population, distance, IANA timezone, and GeoNames ID.","exampleAgentPrompt":"What city is closest to coordinates 48.8566° N, 2.3522° E, and what timezone is it in?","exampleUseCases":[{"title":"Label GPS track points with city names","prompt":"I have a GPS log with thousands of coordinate points — can you tell me the nearest city and country for each one so I can group them by location?"},{"title":"Determine timezone from device coordinates","prompt":"My app captured the user's location as latitude 35.6762, longitude 139.6503 — what city and IANA timezone does that correspond to?"},{"title":"Enrich photo metadata with place name","prompt":"A photo was taken at 40.7128° N, 74.0060° W — what city and country is that, and how far is it from the nearest major population center?"}],"resultDescription":"Returns the nearest city or town name, its country, the distance in km from the queried coordinate, the city's population, the IANA timezone string (e.g. 'America/New_York'), and the GeoNames ID. Invalid or unrecognized coordinates return an error and are not billed.","failureModes":["Latitude out of range (-90 to 90) returns an error and no charge","Longitude out of range (-180 to 180) returns an error and no charge","Coordinates in remote ocean areas with no nearby city may return an error or the nearest distant settlement","Missing required lat or lon parameter returns an error"],"whenToPreferThis":"Use this endpoint when you need a fast, affordable single-call reverse geocode that also returns the IANA timezone and GeoNames ID alongside the city name — especially useful when labelling GPS points, determining timezone offsets from coordinates, or enriching location data at $0.002 per call without being charged for invalid inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:31:42.804Z","isFirstParty":false,"canonicalSlug":"reverse-geocoding-api-dd33cc60"}