Skip to main content
Get started

Geocoding for your application

Geocode addresses, reverse geocode locations, and add address autocomplete.

Affordable Geo APIs gives you address geocoding, free-text search, reverse geocoding, and autocomplete through one simple GET API that returns GeoJSON. Use a server SDK to add Google or HERE as a backup provider, or the browser client for autocomplete with a public token.

Your first request​

Send a street address and at least one location field. Set the URL and API key for your deployment:

Terminal
curl --get "$GEOCODING_BASE_URL/v1/geocode" \
--header "apikey: $GEOCODING_API_KEY" \
--data-urlencode "street=11 Wall Street" \
--data-urlencode "city=New York" \
--data-urlencode "state=NY"

The response lists matching addresses with coordinates, a confidence score, and a data source. A valid request with no matches returns an empty features array.

Choose your integration​

LibraryRuntimeStart here
Node.jsNode.js 22+ · TypeScript or JavaScriptNode.js SDK
Browser JavaScriptFetch and ES modules · any frontend frameworkBrowser autocomplete
PythonPython 3.11+ · blocking or asyncioPython SDK
PHPPHP 8.2+ · cURLPHP SDK
C# / .NET.NET 8+ · async.NET SDK
HTTPAny backend with an HTTP clientAPI reference

The SDKs currently install from repository source or a local package. Each library page includes installation steps.

Understand a match​

The SDK's primary route covers Canada, the United States, and Mexico. Configure a backup for other country hints. Actual API coverage depends on the deployment's dataset.

Review confidence scores when choosing a candidate. Scores are provider-specific. See country routing for international requests.