Add long and lat in place form

hello i try to integrate place forme like this

but how to add and save long and lat ?

Hi @yannick
The example you found is the one that should help you get the lat and long.
If you haven’t managed to do, it, please set up a reproducible example and we’ll try to help.
Happy coding!

but i need to add field (not a problem) to write long and lat
thanks for help

i found this e.suggestion.latlng but i need to have long and lat sepearte

solved …
document.querySelector(’#form-lat’).value = e.suggestion.latlng[‘lat’] || ‘’;
document.querySelector(’#form-lon’).value = e.suggestion.latlng[‘lng’] || ‘’;