Level 51
You can use Google Maps to get the position when the user clicks on it.
// Configure the click listener.
map.addListener("click", (mapsMouseEvent) => {
console.log(mapsMouseEvent.latLng) // {let: latValue, lng: lngValue}
// Updating input values
latInput.value = mapsMouseEvent.latLng.lat;
lngInput.value = mapsMouseEvent.latLng.lng;
});
https://developers.google.com/maps/documentation/javascript/examples/event-click-latlng