positionstack
正向和反向批量地理编码 REST API
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 地理编码
- 文档 / URL
- https://positionstack.com/
简介
positionstack 提供地理编码和反向地理编码(apilayer)——基于密钥(无效密钥返回 401,已实测)。
快速开始
正向地理编码(替换 YOUR_KEY):
curl "https://api.positionstack.com/v1/forward?access_key=YOUR_KEY&query=Paris"
{
"data": [
{ "latitude": 48.8566, "longitude": 2.3522, "label": "Paris, Île-de-France, France", "name": "Paris", "region": "Île-de-France" }
]
}
认证方式
- 在 positionstack.com 注册 → API 密钥。
- 通过
access_key查询参数携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层:25,000 次/月(看文档);付费档可扩展。
- 正向/反向地理编码、时区数据。
常见问题
positionstack 免费吗? 免费层:25,000 次/月;更多需要付费。
为什么 401? 无效 access key 返回 401(已实测)——请注册拿密钥。
认证风格是什么?
access_key 查询参数。
地理编码 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Actinia Grass GIS Actinia is an open source REST API for geographical data that uses GRASS GIS | API Key | Yes | Unknown | ↗ |
| administrative-divisons-db Get all administrative divisions of a country | No auth | Yes | Yes | ↗ |
| adresse.data.gouv.fr Address database of France, geocoding and reverse | No auth | Yes | Unknown | ↗ |
| Airtel IP IP Geolocation API. Collecting data from multiple sources | No auth | Yes | Unknown | ↗ |
| Apiip Get location information by IP address | API Key | Yes | Yes | ↗ |