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
vignesh balasubramanian 14vignesh balasubramanian 14 

Find Hotels within 5kms from given Geolocation in Visualforcepage

Hi Everyone,

Can anyone share vf page and apex code to find hotels within 5kms from given Geolocation in Visualforcepage.
Raj VakatiRaj Vakati
HI , 

Please refer this link for visualforce page with maps. 
http://ccoenraets.github.io/salesforce-developer-workshop/Using-JavaScript-in-Visualforce-Pages.html
Refer the below link to access the geolocation 
https://developers.google.com/maps/documentation/javascript/examples/map-geolocation
Use apex to calculate the distance and place the markers on the page