Wind Turbine API
액세스 & 한계Public, no key needed · Heavy▾
모두에게 개방됩니다. 프로필에서 무료 API 키를 받으면 한도가 올라갑니다. 다음을 통해 전송하세요: X-API-Key 헤더 또는 api_key= 주소에서.
| 5분 | 시간 | 날짜 | |
|---|---|---|---|
| 키 없음 | 20 | 120 | 500 |
| 키 사용 | 60 | 400 | 2,000 |
Each 900 square km of area counts as one request, so squares up to 30 km count once.
프로필 페이지에서 무료 키를 생성하려면 로그인하십시오.
모든 답변이 포함됩니다 X-RateLimit-Remaining 그리고 X-RateLimit-Reset제한을 초과하면 오류 응답 429 포함 retry_after 초 단위입니다. 거부된 요청은 계산되지 않습니다.
정사각형 범위 내의 모든 풍력 터빈, 크기 포함: 블레이드 팁의 높이, 허브 높이 및 로터의 직경, 동일한 데이터 풍력 터빈 지도 그리기. JSON으로 웹 페이지나 스크립트용으로 요청하거나, 비행 컴퓨터나 지상국이 휴대할 수 있는 소형 바이너리 파일로 요청하세요. 발사장의 터빈을 펌웨어에 내장할 수 있습니다.
lat lon size_km매개변수
| 파라미터 | 의미 |
|---|---|
lat, lon | 정사각형의 중앙, 십진도 (lng 도 허용됨) |
size_km | 정사각형의 한 변의 길이(km), 0보다 크고 최대 50. 생략하면 10. |
format | 선택 사항. json (기본값): 터빈 목록. bin: 32바이트 헤더와 16바이트 레코드, 파일로. |
compress | 선택 사항, 용도 format=bin. none (기본값), zlib 또는 lzma (LZMA만, 다음과 같이 Tree Canopy API). |
download | 선택 사항. 1 브라우저가 저장하도록 만듭니다 format=bin 파일로 답변하며, 사각형 이름으로 지정됩니다. |
터빈
각 터빈은 다음의 점입니다: 총 높이 (타워 위의 블레이드 팁이 최고조, 지면 위) 허브 높이 및 로터 직경, 모두 미터 단위, 그리고 0 (소스 기록 없음). 터빈이 바람을 향하도록 회전하므로 블레이드 끝은 허브 주변의 로터 반경 원 위의 어느 위치에나 있을 수 있습니다. 위험 요소의 경우 터빈을 타워 맨 위의 허브 높이에 있는 그 반경의 구로 간주하세요.
국가가 풍력 터빈의 국가 등록을 보관하는 경우 해당 소스: 미국 Wind Turbine Database, 캐나다 Wind Turbine Database, 독일의 Marktstammdatenregister (운영 중이거나 임시 중단된 장치), 덴마크 에너지청 등록부 (해제되지 않은 터빈), 스웨덴의 Vindbrukskollen (건설된 터빈), 네덜란드의 RIVM 터빈 레이어 및 노르웨이의 NVE (건설된 터빈). 다른 곳의 터빈은 OpenStreetMap에서 나옵니다. 등록부와 OpenStreetMap이 동일한 터빈을 가지고 있는 경우 (40 m 이내), 등록부의 것이 보관됩니다. 각 소스는 3개월마다 다시 가져옵니다.
The JSON answer
{
"success": true,
"lat", "lon", "size_km",
"built": true, false until the database is first built
"count": 12,
"turbines": [ nearest the middle first
{ "lat", "lon", "distance_m",
"total_m", "hub_m", "rotor_m", metres, 0 where not recorded
"source" } which source it came from
],
"meaning", "credits"
}
binary file
함께 format=bin: 32바이트 헤더 다음에 하나의 16바이트 레코드 터빈, 중간에 가장 가까운 것부터, 작은 엔디안.
| 바이트 | 유형 | 값 |
|---|---|---|
| 0 | char[4] | ACTB |
| 4 | uint8 | 버전, 1 |
| 5 | uint8 | 레코드 크기, 16 |
| 6 | uint16 | 0 |
| 8 | uint32 | 기록 |
| 12 | int32 | 정사각형의 중심, 위도 × 107 |
| 16 | int32 | 사각형의 중앙, 경도 × 107 |
| 20 | uint32 | 정사각형의 변, 미터 |
| 24 | uint8[8] | 0, 예약됨 |
| Record byte | 유형 | 값 |
|---|---|---|
| 0 | int32 | 위도 × 107 |
| 4 | int32 | Longitude × 107 |
| 8 | uint16 | 총 높이, 데시미터(0은 기록되지 않음) |
| 10 | uint16 | Hub height, decimetres (0 not recorded) |
| 12 | uint16 | Rotor diameter, decimetres (0 not recorded) |
| 14 | uint8 | Type: 1 wind turbine |
| 15 | uint8 | Source: 1 OpenStreetMap, 2 US Wind Turbine Database, 3 Marktstammdatenregister, 4 Energistyrelsen, 5 Vindbrukskollen, 6 Canadian Wind Turbine Database, 7 RIVM windturbines, 8 NVE vindkraft |
Examples
https://www.altimetercloud.com/api/turbines/?lat=54.35&lon=-2.95&size_km=10
https://www.altimetercloud.com/api/turbines/?lat=54.35&lon=-2.95&size_km=30&format=bin&download=1
파일 읽기
장치에서
// C
typedef struct __attribute__((packed)) {
char magic[4]; // "ACTB"
uint8_t version, rec_size; // 1, 16
uint16_t reserved0;
uint32_t count;
int32_t mid_lat_e7, mid_lon_e7;
uint32_t side_m;
uint8_t reserved[8];
} TurbineHeader;
typedef struct __attribute__((packed)) {
int32_t lat_e7, lon_e7;
uint16_t total_dm, hub_dm, rotor_dm; // decimetres, 0 not recorded
uint8_t type, source;
} Turbine;
// the nearest turbine's clearance: how far a point at alt_m above the tower's
// ground is from the sphere the blades can sweep (negative: inside it)
float clearanceM(const Turbine *t, double lat, double lon, float alt_m) {
float hub = t->hub_dm ? t->hub_dm / 10.0f : 100.0f; // a typical size where none is recorded
float r = t->rotor_dm ? t->rotor_dm / 20.0f : 60.0f;
double dy = (lat - t->lat_e7 / 1e7) * 111320.0;
double dx = (lon - t->lon_e7 / 1e7) * 111320.0 * cos(lat * M_PI / 180.0);
double dz = alt_m - hub;
return (float)(sqrt(dx * dx + dy * dy + dz * dz) - r);
}
레코드는 중앙에 가장 가까운 것부터 나타나므로, 발사 지점 주변 영역을 로드한 기기는 처음 몇 개에서 멈출 수 있습니다.
컴퓨터에서
# Python
import requests, struct
r = requests.get('https://www.altimetercloud.com/api/turbines/',
params={'lat': 54.35, 'lon': -2.95, 'size_km': 30, 'format': 'bin'})
f = r.content
magic, ver, rec, _, n, mlat, mlon, side = struct.unpack('<4sBBHIiiI', f[:24])
for i in range(n):
la, lo, tot, hub, rot, typ, src = struct.unpack('<iiHHHBB', f[32 + 16 * i: 48 + 16 * i])
print(la / 1e7, lo / 1e7, tot / 10, hub / 10, rot / 10, src)
오류
| 코드 | 의미 |
|---|---|
412 | 매개변수가 없거나 유효하지 않거나, 정사각형이 50km 초과입니다 |
429 | 귀하의 주소에서 너무 많은 요청이 있거나 아직 처리 중입니다 |
501 | 요청한 압축이 현재 사용 불가능합니다 |
시도해 보세요
그 풍력 터빈 지도 다운로드 패널이 있습니다: 맵을 움직여 십자가가 발사 사이트 위에 오도록 하고, 크기를 선택한 다음 이 API에서 파일을 저장합니다.
터빈 데이터 크레딧
U.S. Wind Turbine Database, U.S. Geological Survey, Lawrence Berkeley National Laboratory 및 American Clean Power Association, 공개 도메인: Hoen, B.D., Diffendorfer, J.E., Rand, J.T., Kramer, L.A., Garrity, C.P., and Hunt, H.E., United States Wind Turbine Database, U.S. Geological Survey, doi:10.5066/F7TX3DN0.
Datenquelle: Marktstammdatenregister, Bundesnetzagentur, licensed under the Datenlizenz Deutschland, Namensnennung, Version 2.0.
Kilde: Energistyrelsen (Danish Energy Agency), stamdataregister for vindkraftanlæg.
Länsstyrelserna, Vindbrukskollen, CC0.
Contains information licensed under the Open Government Licence - Canada: Canadian Wind Turbine Database, Natural Resources Canada.
RIVM, Atlas Leefomgeving, Windturbines (public domain).
Contains data under the Norwegian licence for Open Government data (NLOD) made available by NVE (Norwegian Water Resources and Energy Directorate): vindkraft.
Contains OpenStreetMap data © OpenStreetMap contributors, available under the Open Database Licence (ODbL).
The sources are combined here and reduced to one point a turbine, which changes them: this is not the original data of any of them.
Licence of this data. Because it contains OpenStreetMap data, the data this API gives out is made available under the Open Database License (ODbL) 1.0. You may use it freely, commercially too, as long as you credit it as above and share any database you make from it under the same licence.
AltimeterCloud 크레딧
무료 사용. 사용하는 경우 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”. 이 페이지에 나열된 데이터의 출처가 요청하는 모든 출처 표시가 적용됩니다.



















