+ Start a Discussion
nikita dhamalnikita dhamal 

Get nearby accounts to the current location of user

I want to show the accounts that arein particular radius of the   current location specified by latitudes and longitudes on a visualforce page.Can anyone help me with code for the same??

 

Ravi Dutt SharmaRavi Dutt Sharma
Hi Nikita,

You can use Google API to get nearby accounts. This will be a webservice call which will give you the nearby accounts. I have built something similar on these lines. Have a look at my blog to get better idea. Thanks.

http://raviduttsharma.wixsite.com/salesforce/single-post/2015/07/15/Search-Nearby-Places