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 and X-RateLimit-Reset制限を超えると、エラーになります 429 〜と retry_after 秒単位。拒否されたリクエストはカウントされません。
正方形内のすべての風力タービンと、その尖端ブレード高さ、ハブ高さ、ロータ直径などのサイズデータ、同じデータ 風力タービンマップ JSON形式でウェブページまたはスクリプト用として、または飛行コンピュータまたは地上局が搭載できる小さなバイナリファイルとして要求してください。これにより、打ち上げサイトのタービンをファームウェアに組み込むことができます。
lat lon size_kmパラメータ
| パラメータ | 意味 |
|---|---|
lat, lon | 矩形の中央、10進度数 (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 ソース記録がない場合. タービンが風に向くようにターンするため、ブレード先端はハブの周りのロータの半径の円上のどこにでもある可能性があります。危険物として、タービンをタワーの上のハブの高さでその半径の球として扱ってください。
国が風力タービンの国家登録簿を管理している場合、それがソースです: 米国風力タービンデータベース、カナダ風力タービンデータベース、ドイツの 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"
}
バイナリファイル
以下 format=bin: 32バイトヘッダーの後、1つの16バイトレコード(タービン、中央に最も近いもの優先、リトルエンディアン)。
| バイト | タイプ | 値 |
|---|---|---|
| 0 | char[4] | ACTB |
| 4 | uint8 | Version, 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 | 経度 × 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 | パラメータが見つからないか有効ではありません。またはスクエアが50 km以上です |
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”. このページにリストされている、データ自体のソースが要求するいかなるクレジットも同様に適用されます。



















