Skip to main content
GET
Open-Meteo Geocoding

授权

Authorization
string
header
必填

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

查询参数

count
integer
默认值:10

Maximum number of results (1-100). Default 10.

示例:

5

countryCode
string

ISO-3166-1 alpha-2 country code to filter results.

示例:

"DE"

format
enum<string>
默认值:json

Response format. Default json.

可用选项:
json,
protobuf
language
string
默认值:en

Two-letter language code for translated names. Default en.

示例:

"en"

name
string
必填

Location name or postal code. Append , <country> or , <admin1> to narrow results.

示例:

"Berlin"

响应

Matching locations.

The response is of type object.