跳转到主要内容
POST
Geocoding API

请求规范

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

费用与请求规则

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

授权

Authorization
string
header
必填

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

请求体

application/json
address
string

The street address or plus code that you want to geocode. Provide for geocoding (address to coordinates).

示例:

"1600 Amphitheatre Parkway, Mountain View, CA"

bounds
string

The bounding box of the viewport within which to bias geocode results more prominently (e.g., '34.172684,-118.604794|34.236144,-118.500938'). This parameter will only influence, not fully restrict, results.

示例:

"34.172684,-118.604794|34.236144,-118.500938"

components
string

A components filter with elements separated by a pipe (|). E.g., 'postal_code:94043|country:US'. Used for geocoding, can be restrictive or biasing. Supplying only components without address may return ZERO_RESULTS for some queries.

示例:

"postal_code:94043|country:US"

extra_computations
enum<string>[]

Use this parameter to specify additional features in the response. Can select multiple values.

可用选项:
ADDRESS_DESCRIPTORS,
BUILDING_AND_ENTRANCES
示例:
key
string

Your application's API key. If not provided, will be extracted from connection metadata.

示例:

"YOUR_API_KEY"

language
string

The language in which to return results. If language is not supplied, the geocoder attempts to use the preferred language as specified in the Accept-Language header, or the native language of the domain from which the request is sent.

示例:

"en"

"es"

latlng
string

The latitude and longitude coordinates specifying the location for which you want the closest, human-readable address (e.g., '40.714224,-73.961452'). Provide for reverse geocoding.

示例:

"40.714224,-73.961452"

location_type
string

A filter of one or more location types, separated by a pipe (|) (e.g., 'ROOFTOP|RANGE_INTERPOLATED'). Used for reverse geocoding and place ID geocoding.

示例:

"ROOFTOP|RANGE_INTERPOLATED"

place_id
string

The place ID of the place for which you wish to obtain the human-readable address. Provide for place ID geocoding.

示例:

"ChIJd8BlQ2BZwokRAFUEcm_qrcA"

region
string

The region code, specified as a ccTLD ('top-level domain') two-character value. This parameter will only influence, not fully restrict, results from the geocoder.

示例:

"US"

"ES"

result_type
string

A filter of one or more address types, separated by a pipe (|) (e.g., 'street_address|locality'). Used for reverse geocoding and place ID geocoding.

示例:

"street_address|locality"

响应

Tool result data

results
object[]
必填
status
string
必填
error_message
string
plus_code
object