{"uid":"cap_QRp8gevJAURcxi8OSiJFI","slug":"compacthost-geocode-3e4be179","name":"Compacthost Geocode","description":"Pay-per-call generative AI tools for autonomous agents, settled in USDC on Base via x402.","url":"https://x402.compacthost.com/geocode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"location":{"type":"string"}}},"responseSchema":{"type":"json","example":{"lat":39.7392,"lon":-104.9849,"name":"Denver, Colorado"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rqCLrOJ2ZqzHNAjj75eRw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a location string into geographic coordinates (latitude and longitude) with a resolved place name","exampleAgentPrompt":"What are the latitude and longitude coordinates for Denver, Colorado?","exampleUseCases":[{"title":"Geolocate user-entered address","prompt":"I have a user who typed in '1600 Amphitheatre Parkway, Mountain View' — can you get me the lat/lon coordinates for that?"},{"title":"Resolve city name for mapping","prompt":"I need the geographic coordinates for Tokyo, Japan so I can plot it on a map."},{"title":"Enrich location data for logistics","prompt":"We have a list of store locations like 'Austin, Texas' and 'Portland, Oregon' — can you look up the latitude and longitude for Austin, Texas?"}],"resultDescription":"A JSON object containing the latitude (lat) and longitude (lon) as decimal numbers, plus a resolved canonical place name (name), e.g. {\"lat\":39.7392,\"lon\":-104.9849,\"name\":\"Denver, Colorado\"}","failureModes":["Ambiguous location string returns coordinates for the most likely match, which may not be the intended place","Unknown or misspelled location may return a null or error response","Very vague inputs (e.g. 'downtown') without a city context may fail to resolve","Payment failure over x402/USDC on Base will prevent the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call geocoding lookup settled in USDC on Base via x402 — ideal for autonomous agents that need to resolve place names or addresses to coordinates without managing API keys or monthly subscriptions. Preferred over bulk geocoding services when making infrequent, on-demand lookups in an agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:53.618Z","isFirstParty":false}