Skip to main content
POST
GraphHopper Geocoding

Request contract

  • Method and path: POST /apis/v1/graphhopper/geocode-get
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/graphhopper/geocode-get
  • Runtime facts: 6a72f8e2fa7fb1c29379e3b24b3a247c8428a3b6ed621b3f84f84e75cb0de2bc
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.00042 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.00042
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
q
string
required

Text to geocode (forward geocoding). Required when reverse=false; must be omitted if reverse=true.

Example:

"Berlin"

reverse
enum<boolean>
required

Set to true for reverse geocoding. Default false.

Available options:
false
provider
enum<string>
required

Alternative geocoding provider.

Available options:
default
key
string

Your GraphHopper API key. If not provided, it will be automatically injected from the connection.

Example:

"your_api_key"

bbox
string

Bounding box 'minLon,minLat,maxLon,maxLat'. Requires reverse=false. Only provider=default.

zoom
number

Map-like zoom level controlling focus radius. Only provider=default.

debug
boolean
default:false

Pretty-print the output. Default false.

limit
integer
default:5

Maximum number of results. Default 5.

Required range: x >= 1
Examples:

1

10

point
string

Coordinate 'lat,lon'. Required when reverse=true; for forward geocoding, acts as location bias.

Example:

"52.529407,13.397634"

bounds
string

Bounds 'minLon,minLat,maxLon,maxLat'. For nominatim or opencagedata.

locale
enum<string>
default:en

Locale of results. Default 'en'.

Available options:
en,
de,
fr
Example:

"en"

radius
number

Search radius. Default: km for provider=default when reverse=true; meters for provider=gisgraphy.

osm_tag
string[]

OSM tags to filter/include or exclude, e.g., 'tourism:museum' or '!tourism:museum'. Only provider=default.

countrycode
string

ISO 3166-1 alpha-2 country filter. For nominatim, gisgraphy, or opencagedata.

autocomplete
boolean

Enable autocomplete (only for provider=gisgraphy and reverse=false).

location_bias_scale
number

Location bias scale between 0.0 and 1.0. Only provider=default.

Required range: 0 <= x <= 1

Response

Tool result data

hits
object[]
required
took
integer
locale
string