Wind Turbine API

アクセス & 制限Public, no key needed · Heavy▾

誰でも利用可能です。プロファイルからの無料APIキーは制限を引き上げます: X-API-Key ヘッダー、またはとして api_key= アドレスで。

5分時間日
キーなし20120500
キーを使用して604002,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 秒単位。拒否されたリクエストはカウントされません。

GET キーは不要 JSON またはバイナリ ファイル 最大50 km四角 16バイトのタービン 1時間あたりアドレスあたり60リクエスト

正方形内のすべての風力タービンと、その尖端ブレード高さ、ハブ高さ、ロータ直径などのサイズデータ、同じデータ 風力タービンマップ JSON形式でウェブページまたはスクリプト用として、または飛行コンピュータまたは地上局が搭載できる小さなバイナリファイルとして要求してください。これにより、打ち上げサイトのタービンをファームウェアに組み込むことができます。

GEThttps://www.altimetercloud.com/api/turbines/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バイトレコード(タービン、中央に最も近いもの優先、リトルエンディアン)。

バイトタイプ値
0char[4]ACTB
4uint8Version, 1
5uint8レコードサイズ、16
6uint160
8uint32記録
12int32正方形の中心、緯度 × 107
16int32正方形の中央、経度 × 107
20uint32正方形の辺、メートル
24uint8[8]0、予約済み
Record byteタイプ値
0int32緯度 × 107
4int32経度 × 107
8uint16総高さ、デシメートル (0 は記録されていません)
10uint16Hub height, decimetres (0 not recorded)
12uint16Rotor diameter, decimetres (0 not recorded)
14uint8Type: 1 wind turbine
15uint8Source: 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”. このページにリストされている、データ自体のソースが要求するいかなるクレジットも同様に適用されます。