I am working with leafletjs.com and added MAP. I want to get elevation from current latitude and longitude or current place only, but it will return whole path elevation.
var el = L.control.elevation();
el.addTo(map);
var gjl = L.geoJson(geojson,{
onEachFeature: el.addData.bind(el)
}).addTo(map);
map.addLayer(service).fitBounds(bounds);
How can I find the elevation with either mapbox or leafletjs.