latitudestringจำเป็น
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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
latitudestringจำเป็นWGS84 latitude, or a comma-separated list of up to 100 latitudes.
longitudestringจำเป็นWGS84 longitude, or a comma-separated list of up to 100 longitudes (positions aligned with `latitude`).
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Open-Meteo ElevationAPI นี้ Open-Meteo | $0.0001 ต่อการเรียก | JSON |
Open-Meteo | $0.0001 ต่อการเรียก | JSON |
Open-Meteo | $0.0001 ต่อการเรียก | JSON |
Open-Meteo | $0.0001 ต่อการเรียก | JSON |
Open-Meteo | $0.0001 ต่อการเรียก | JSON |
Open-Meteo | $0.0001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/open-meteo/elevation โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.0001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: latitude (string) และ longitude (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Open-Meteo Elevation ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Open-Meteo API แยกต่างหาก