Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Open-Meteo Elevation

Dokumentasi API
https://api.sandbase.ai/v1/api/open-meteo/elevation

Terrain elevation in meters for one or more coordinates, from a 90 m digital elevation model.

Harga
$0.0001USD / panggilan
Metode
POST
Respons
JSON
Parameter
2 wajib · 0 opsional

Playground

Input
WGS84 latitude, or a comma-separated list of up to 100 latitudes.
WGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with `latitude`).
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

Open-Meteo Elevation API

Returns terrain elevation in meters for one or more coordinates, taken from a 90 m digital elevation model. You send WGS84 latitude and longitude values, either as single numbers or as comma-separated lists.

Use cases

  • Add ground elevation to a list of store or site locations before analysis.
  • Correct a weather forecast or temperature reading for the height of a location.
  • Check the elevation of several waypoints on a hiking or cycling route in one request.
  • Fill in missing altitude values in a dataset of GPS points.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/elevation" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52,48.85", "longitude": "13.41,2.35"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latitudestringYesWGS84 latitude, or a comma-separated list of up to 100 latitudes.
longitudestringYesWGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with latitude).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "elevation": [
    38.0
  ]
}

Response fields

FieldMeaning
elevationList of terrain elevations in meters, one per requested coordinate.
elevation[0]Elevation for the first coordinate pair. For the example request this is 38.0 for 52.52, 13.41.
elevation[1]Elevation for the second coordinate pair. For the example request this is 46.0 for 48.85, 2.35.

Notes

  • Send up to 100 coordinates in one request. Put them in latitude and longitude as comma-separated lists.
  • Values in elevation appear in the same order as the input coordinates. Position 0 in latitude pairs with position 0 in longitude.
  • If you only have a place name, use Open-Meteo Geocoding first to get its coordinates.
  • To get weather for the same coordinates, use Open-Meteo Weather Forecast.

Pricing

$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON
Open-Meteo$0.0001 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Open-Meteo Elevation?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/open-meteo/elevation dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Open-Meteo Elevation?

$0.0001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Open-Meteo Elevation?

Wajib: latitude (string) dan longitude (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Open-Meteo Elevation?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Open-Meteo?

Tidak. Open-Meteo Elevation berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Open-Meteo secara terpisah.