freeapis

Yandex.Maps Geocoder

使用地理编码根据地址获取对象的坐标

认证方式
API Key
HTTPS
Yes
CORS
Unknown

简介

Yandex.Maps Geocoder 把地址转坐标和反向转换。认证是 Yandex API 密钥(无有效密钥的请求返回 403,已实测)。

快速开始

地理编码(替换 YOUR_KEY):

curl "https://geocode-maps.yandex.ru/1.x/?apikey=YOUR_KEY&geocode=Moscow&format=json"
{
  "response": {
    "GeoObjectCollection": {
      "featureMember": [
        {
          "GeoObject": {
            "name": "Moscow",
            "Point": { "pos": "37.617635 55.755814" },
            "metaDataProperty": { "GeocoderMetaData": { "kind": "locality" } }
          }
        }
      ]
    }
  }
}

认证方式

  • 在 yandex.com/dev 注册 → 获取 API 密钥。
  • 通过 apikey 查询参数携带(无效/缺失 → 403,已实测)。

速率限制与注意事项

  • 免费层:25,000 次地理编码/天(以文档为准);更多需要付费。
  • 注意坐标顺序:pos经度 纬度
  • format=json(或 xml);反向地理编码用 geocode=lat,lng

常见问题

Yandex Geocoder 免费吗? 免费层:25,000 次/天;更多需要付费。

如何获取密钥? yandex.com/dev → 创建 API 密钥。

坐标顺序是什么? pos 是“经度 纬度”(已实测)。

地理编码 分类更多

APIAuthHTTPSCORS
Actinia Grass GIS

Actinia is an open source REST API for geographical data that uses GRASS GIS

API KeyYesUnknown
administrative-divisons-db

Get all administrative divisions of a country

No authYesYes
adresse.data.gouv.fr

Address database of France, geocoding and reverse

No authYesUnknown
Airtel IP

IP Geolocation API. Collecting data from multiple sources

No authYesUnknown
Apiip

Get location information by IP address

API KeyYesYes