跳转到主要内容
POST
GraphHopper Geocoding

请求规范

  • 方法与路径: POST /apis/v1/graphhopper/geocode-get
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/graphhopper/geocode-get
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.00042 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

请求体

application/json
provider
enum<string>
必填

Alternative geocoding provider.

可用选项:
default
q
string
必填

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

示例:

"Berlin"

reverse
enum<boolean>
必填

Set to true for reverse geocoding. Default false.

可用选项:
false
autocomplete
boolean

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

bbox
string

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

bounds
string

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

countrycode
string

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

debug
boolean
默认值:false

Pretty-print the output. Default false.

key
string

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

示例:

"your_api_key"

limit
integer
默认值:5

Maximum number of results. Default 5.

必填范围: x >= 1
示例:

1

10

locale
enum<string>
默认值:en

Locale of results. Default 'en'.

可用选项:
en,
de,
fr
示例:

"en"

location_bias_scale
number

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

必填范围: 0 <= x <= 1
osm_tag
string[]

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

point
string

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

示例:

"52.529407,13.397634"

radius
number

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

zoom
number

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

响应

Tool result data

hits
object[]
必填
locale
string
took
integer