• JPKato
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 0
    Replies
I would like to create a visualforce page that will use the address of a Contact in Salesforce, and determine which one of our ground campus locations is the closest, and display the campus name and distance. I assume that I would need the Latitude, Longitude coordinates for each campus, then somehow tie that into the directions portion of Google Maps... But I'm honestly not sure where to begin with this.
I have found this page: 

http://help.salesforce.com/apex/HTViewHelpDoc?id=custom_field_geolocate_overview.htm#custom_field_geolocate_overview&language=en

which goes into some detail about using the "distance formula" but I am new to Apex coding and using geolocation information, and I don't know how I would access the directions function of Google Maps to utilize and compare the distances to each campus, then display the smallest value/distance.

Any input would be greatly apreciated!
  • December 21, 2015
  • Like
  • 0

Hi all,

 

I am stuck in a problem. I want to create a visual force page in which I need to show all the addresses in account table on Google map. Currently I am able to show one address on google map by adding my visual force page into the standard account page. But now I need a separate standalone page showing only a google map and all the addresses (in account table) marked on this map.

 

Any help will be highly appreciated...

  • August 05, 2010
  • Like
  • 2