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.