{"uid":"cap_RQ8dkkRt7MZQJvKmgQY0u","slug":"relaystation-geocode-a4e0cdbc","name":"Relaystation Geocode","description":"$0.005/lookup. Geocode a free-text address to coordinates (AWS Location Service) — lat/lng plus normalized address. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/location/geocode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"query":{"type":"string","maxLength":512,"minLength":1},"language":{"type":"string"},"countries":{"type":"array","items":{"type":"string","maxLength":3,"minLength":3}},"maxResults":{"type":"integer","maximum":20,"minimum":1},"biasPosition":{"type":"array","items":{"type":"number"},"maxItems":2,"minItems":2,"description":"[longitude, latitude] (WGS-84)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hhiy-xZ9xD3q3diY9oJtB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a free-text address string into geographic coordinates (lat/lng) and a normalized address using AWS Location Service.","exampleAgentPrompt":"Can you geocode '1600 Pennsylvania Avenue NW, Washington, DC 20500' and give me the latitude, longitude, and normalized address?","exampleUseCases":[{"title":"Mapping delivery drop-off points","prompt":"I have a customer-entered delivery address '742 Evergreen Terrace, Springfield, IL' — can you convert it to lat/lng coordinates so I can plot it on the map?"},{"title":"Standardizing user-submitted addresses","prompt":"Our sign-up form collected '350 5th Ave New York' without a zip code — can you geocode it and return the normalized full address and coordinates?"},{"title":"Biasing geocode near known city","prompt":"Geocode 'Main Street Bakery' biased near longitude -87.6298, latitude 41.8781 in the US, and give me back the top 3 results with their coordinates."}],"resultDescription":"Returns one or more geocoded results, each containing latitude and longitude (WGS-84) and a normalized/standardized address string corresponding to the input query.","failureModes":["Ambiguous query with no confident match returns empty results array","Invalid or unsupported country code in the countries filter causes a validation error","Query string too short or too long (outside 1–512 characters) returns a 400 bad request","biasPosition array with wrong number of elements (not exactly [longitude, latitude]) causes schema validation failure","Service unavailability from underlying AWS Location Service may result in a 502 or timeout"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call geocoding lookup without managing AWS credentials or infrastructure — particularly in agentic workflows where the x402 micropayment model fits and you want AWS Location Service quality with optional country filtering and position biasing. It is well-suited for single-address lookups at $0.005 per result rather than batch geocoding pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:04.426Z","isFirstParty":false}