Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Open-Meteo Elevation

Tài liệu 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.

Giá
$0.0001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
2 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
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`).
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Open-Meteo$0.0001 mỗi lần gọiJSON
Open-Meteo$0.0001 mỗi lần gọiJSON
Open-Meteo$0.0001 mỗi lần gọiJSON
Open-Meteo$0.0001 mỗi lần gọiJSON
Open-Meteo$0.0001 mỗi lần gọiJSON
Open-Meteo$0.0001 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Open-Meteo Elevation?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/open-meteo/elevation với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Open-Meteo Elevation có giá bao nhiêu?

$0.0001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Open-Meteo Elevation chấp nhận những tham số nào?

Bắt buộc: latitude (string) và longitude (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Open-Meteo Elevation trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Open-Meteo không?

Không. Open-Meteo Elevation chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Open-Meteo.