{"uid":"cap_szPu9JGj3ftwS6bCrEFrV","slug":"tokenguard-geocode-place-name-to-location-data-85b15ec6","name":"Tokenguard Geocode — Place Name to Location Data","description":"Turn a place name into coordinates, country, admin region, timezone, elevation and population — the lookup every other location-aware call needs first","url":"https://eltociear-tokenguard.hf.space/world/geocode","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","description":"Place name to resolve"},"count":{"type":"integer","description":"1-20 candidates (default 5)"}}},"responseSchema":{"type":"json","example":{"count":1,"query":"Osaka","results":[{"name":"Osaka","country":"Japan","latitude":34.69,"timezone":"Asia/Tokyo","longitude":135.5,"population":2691185,"country_code":"JP"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bb65aF8izxTQGXKOTsDNe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves a place name into geographic coordinates, country, admin region, timezone, elevation, and population data","exampleAgentPrompt":"Geocode 'Munich, Germany' and give me the top 3 candidates with their coordinates, timezone, elevation, and population.","exampleUseCases":[{"title":"Pre-flight geocode for weather lookup","prompt":"I need to get the coordinates and timezone for 'Kyoto, Japan' — give me the top result so I can plug it into a weather forecast call."},{"title":"Populate location metadata for a user profile","prompt":"A user just typed 'São Paulo' as their city — look it up and return the canonical name, country, admin region, timezone, and population so I can store it in their profile."},{"title":"Disambiguate an ambiguous place name","prompt":"Can you geocode 'Springfield' and give me the 5 most likely matches with their country, state, and coordinates so I can ask the user which one they mean?"}],"resultDescription":"Returns up to 20 ranked candidate locations matching the input name, each with: canonical name, latitude, longitude, country, admin region(s), IANA timezone string, elevation in meters, and population figure.","failureModes":["Unknown or misspelled place name returns empty results array","Count parameter outside 1–20 range may be rejected or clamped","Very ambiguous single-word inputs (e.g. 'Springfield') return many low-confidence candidates requiring disambiguation","Payment failure (x402) if USDC balance is insufficient","Service unavailability on Hugging Face Spaces (cold start latency or downtime)"],"whenToPreferThis":"Use this endpoint when you need a single call that returns rich geographic metadata (coordinates, timezone, elevation, population, admin region) from a free-text place name, especially as a prerequisite step before calling weather, mapping, routing, or time-zone-aware APIs. Prefer it over bare geocoders when you also need timezone and population alongside coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:01:43.406Z","isFirstParty":false}