Skip to content
  • REST API Mapy.cz
  • Pricing
  • FAQ
  • Further uses of Mapy.cz
  • News
  • Reference
  • Contact
  • My Account

  • REST API Mapy.cz
    • How to start
    • API key
    • Rest API function
      • Map tiles
        • Map tile consumption
      • Geocoding
        • Queries and Data
      • Routing
      • Elevation
      • Static maps
      • Time zones
      • Static Panorama
    • Map libraries
    • Atribution
    • REST API Tutorials
      • How to show map
      • Switching map layers
      • Markers and geometries
      • Static maps
      • Routing
      • Geocoding
      • Suggest
      • Reverse geocoding
      • JS Panorama
      • Static Panorama
      • Getting elevation
      • Local time and time zones
      • Address validation
      • Aerial map with labels
      • Desaturated map
      • Zooming the map while geocoding
      • Matrix routing
      • Displaying the elevation profile of a route
    • Testing labs
  • JS Panorama
  • JS SDK Mapy.cz
    • Discontinuation of support for JS SDK
    • Transition from JS SDK to new REST API
  • My account
    • How to log in
    • Project and API keys
    • API key security
    • Financial settings
      • How to turn on paid consumption
      • Extended tariff
    • Seznam Wallet
    • Consumption history
    • User management
    • Catalog of reference projects
    • Deleting user account
  • Pricing
    • Price calculator
  • Frequently asked questions
  • Further uses of Mapy.cz
    • IFrame – embedding map into your own website
    • Mapy.cz URL
    • Calling the Mapy.cz mobile application
    • Printed products
  • Contact
  • Terms and conditions

  • My account
Čeština Search
Help menu
  • REST API Mapy.cz
    • How to start
    • API key
    • Rest API function
      • Map tiles
        • Map tile consumption
      • Geocoding
        • Queries and Data
      • Routing
      • Elevation
      • Static maps
      • Time zones
      • Static Panorama
    • Map libraries
    • Atribution
    • REST API Tutorials
      • How to show map
      • Switching map layers
      • Markers and geometries
      • Static maps
      • Routing
      • Geocoding
      • Suggest
      • Reverse geocoding
      • JS Panorama
      • Static Panorama
      • Getting elevation
      • Local time and time zones
      • Address validation
      • Aerial map with labels
      • Desaturated map
      • Zooming the map while geocoding
      • Matrix routing
      • Displaying the elevation profile of a route
    • Testing labs
  • JS Panorama
  • JS SDK Mapy.cz
    • Discontinuation of support for JS SDK
    • Transition from JS SDK to new REST API
  • My account
    • How to log in
    • Project and API keys
    • API key security
    • Financial settings
      • How to turn on paid consumption
      • Extended tariff
    • Seznam Wallet
    • Consumption history
    • User management
    • Catalog of reference projects
    • Deleting user account
  • Pricing
    • Price calculator
  • Frequently asked questions
  • Further uses of Mapy.cz
    • IFrame – embedding map into your own website
    • Mapy.cz URL
    • Calling the Mapy.cz mobile application
    • Printed products
  • Contact
  • Terms and conditions

  • My account

Getting elevation using REST API

To determine the elevation, we will use the Elevation function. In this simple example, we will only pass the coordinates of the clicked location on the map and retrieve the elevation for that place.

For demonstration, we will use the Leaflet mapping library.

Click on the map to display the elevation.

Leaflet


  • Withdraw consent
Copyright © 1996–2024, Seznam.cz, a.s.