建筑物 API
访问与限制Public, no key needed · Heavy▾
对所有人开放。来自您的个人资料的免费 API 密钥可提高限制:将其发送到 X-API-Key header, or as api_key= 在地址中。
| 5 分钟 | 小时 | 日 | |
|---|---|---|---|
| 没有密钥 | 20 | 120 | 500 |
| 使用密钥 | 60 | 400 | 2,000 |
Each 100 square km of area counts as one request, so a 10 km square is 1 and a 30 km square is 9.
登录在您的配置文件页面上创建免费密钥。
每个答案都包含 X-RateLimit-Remaining 和 X-RateLimit-Reset. 超过限制,答案是错误 429 与 retry_after (秒内)。拒绝的请求不计算在内。
每个建筑物轮廓超过一个边长最多 5 公里的正方形,与发射场勘测绘制的轮廓相同。它们来自 Overture Maps 建筑物数据,该数据将 OpenStreetMap 与从影像检测的建筑物足迹相结合,因此覆盖世界上的许多地方,包括 OpenStreetMap 尚未映射的地方。
lat lon size_km参数
| 参数 | 必需 | 含义 |
|---|---|---|
lat, lon | 是 | 以十进制度表示的正方形中心 |
size_km | 否 | 正方形的边长,0.1 到 5 km(如果省略则为 1) |
format | 否 | geojson (默认):一个 FeatureCollection 多边形,位置为 [lon, lat]。compact: 每个建筑物为环的列表,轮廓首先,然后是任何孔,每个环为平坦的 [lat, lon, lat, lon, ...] 列表,第一个点在末尾不重复。大约三分之一的大小。 |
最多 50,000 个建筑物,从中间附近开始排序;超过此数量后 truncated 为真且 total 说明有多少个。
示例
https://www.altimetercloud.com/api/buildings/?lat=54.3747&lon=-2.9988&size_km=0.5
{
"success": true, "lat": 54.3747, "lon": -2.9988, "size_km": 0.5,
"status": "ok", "partial" or "unavailable" if part could not be read just now
"count": 214, "truncated": false, "release": "2026-10-22.0", "format": "geojson",
"buildings": { "type": "FeatureCollection", "features": [
{ "type": "Feature", "properties": {},
"geometry": { "type": "Polygon", "coordinates": [ [ [-2.9987512, 54.3746633], ... ] ] } }, ... ] },
"notes": [ ... ], "credits": { ... }
}
错误
| 代码 | 含义 |
|---|---|
412 | 参数缺失或无效 |
429 | 请求过多;retry_after 表示等待时间 |
503 | 建筑物存储暂时不可用 |
您必须显示的归属
© OpenStreetMap contributors, Overture Maps Foundation. Buildings: ODbL.
- © OpenStreetMap contributors. Available under the Open Database License.
- Esri Community Maps contributors. Available under CC BY 4.0.
- Global ML Building Footprints. Licensed by Microsoft under the Open Database License.
- Google Open Buildings. Available under CC BY 4.0.
- USGS 3D Elevation Program Digital Elevation Program.
- Qian Shi, et al. A First High-quality Vector Data of Buildings in East Asian Countries Based on a Comprehensive Large-scale Mapping Framework. Zenodo, 22 July 2023, doi:10.5281/zenodo.8174931. Available under CC BY 4.0.
- Work derived from BTN 2024 ign.es. Available under CC BY 4.0.
数据遵循开放数据库许可证:按上述方式标注来源,且以相同许可证分享由其制作的任何数据库。
Altimeter Cloud 致谢
免费使用。如果您使用 this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com 在使用点:在屏幕、页面或打印输出上显示数据的位置,例如 “Data from AltimeterCloud.com”。此页面上列出的数据自身来源要求的任何署名也适用。



















