I am using the leaflet API with OSM. I need to implement a functionality where on dragging the marker and dropping it on user preferred location, I need to get its latitude and longitude and save its location to database.
For now on double clicking the marker I am able to drag the marker. This line helped me:
Now when I release the marker I want to find the latitude and longitude of the location or invoking a function on dragging the marker, returning the