Google Map Issue, longitude and latitude

hello there,

i got an issue of displaying the right coordinate for a location. i had took the coordinate from google


then placed it at DB


but got this !!

Hi Ashtar.
I posted a solution 5 days ago that I think would help you to use the map by the address without storing the coordination of each location in DB.

got it … the location was swapped :S

Mr. Salhi, I follow you, I read all your comments but I could not get out of it. I want to make a page where I can get a map showing my client’s address. Can you help me? Sample site: https://woodcutmaps.com/123484/edit# thank you.

$w.onReady( function () {
$w(“#dynamicDataset”).onReady(() => {
let currentItem = $w(“#dynamicDataset”).getCurrentItem();
$w(“#googleMaps”).location = {
“latitude”: currentItem.latitude,
“longitude”: currentItem.longitude,
};
});
});

please check and tell me this code is correct or because this code is not work