function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Urgent:Move the marker with located address in google map

Hi All,

    I  have displayed like that When we click on a button in an account, it should disply a pointer in the state entered in the account on Google Map with Account name Up to this working fine.But when we drag the pointer to some other location on Google Map and click on a Save button, it should change the account address to the new address .

Andy BoettcherAndy Boettcher

You're going to have to use the Google API to find the long/lat of where the user drags the icon to, then open another Google API connection back to find the nearest address (or just store the long/lat) for the chosen long/lat.


APEX and Visualforce by itself won't get you this information.


Read up on the Google Maps API documentation - good luck!