latitudestringzorunlu
WGS84 latitude, or a comma-separated list of up to 100 latitudes.
https://api.sandbase.ai/v1/api/open-meteo/elevationTerrain elevation in meters for one or more coordinates, from a 90 m digital elevation model.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
latitude | string | Yes | WGS84 latitude, or a comma-separated list of up to 100 latitudes. |
longitude | string | Yes | WGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with latitude). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"elevation": [
38.0
]
}
| Field | Meaning |
|---|---|
elevation | List 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. |
latitude and longitude as comma-separated lists.elevation appear in the same order as the input coordinates. Position 0 in latitude pairs with position 0 in longitude.$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
latitudestringzorunluWGS84 latitude, or a comma-separated list of up to 100 latitudes.
longitudestringzorunluWGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with `latitude`).
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Open-Meteo ElevationBu API Open-Meteo | $0.0001 çağrı başına | JSON |
Open-Meteo | $0.0001 çağrı başına | JSON |
Open-Meteo | $0.0001 çağrı başına | JSON |
Open-Meteo | $0.0001 çağrı başına | JSON |
Open-Meteo | $0.0001 çağrı başına | JSON |
Open-Meteo | $0.0001 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/open-meteo/elevation adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.0001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: latitude (string) ve longitude (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Open-Meteo Elevation, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Open-Meteo API erişimi için ayrıca başvuru yapmanız gerekmez.