+ Start a Discussion
WPCMSWPCMS 

Custom Link: Google Maps

Where can I find code to create a custom link on the opportunity to pull up a map of the address?

 

I was hoping to find code somewhere then figure out how to add my fields to the address fields in Google.

 

Is it harder than I am making it sound? I have no coding experience other than some apex coding testing. Any suggestions?

Best Answer chosen by Admin (Salesforce Developers) 
learnSFlearnSF

You can create custom url like this.

 

  
http://maps.yahoo.com/py/maps.py?cn={!Account_ShippingCountry}&csz={!Account_ShippingCity}+{!Account_ShippingState}+{!Account_ShippingPostalCode}+&addr={!Account_ShippingStreet}

All Answers

joker402joker402
did you want a custom link that launches google maps, or did you want the map in the page itself?
learnSFlearnSF

You can create custom url like this.

 

  
http://maps.yahoo.com/py/maps.py?cn={!Account_ShippingCountry}&csz={!Account_ShippingCity}+{!Account_ShippingState}+{!Account_ShippingPostalCode}+&addr={!Account_ShippingStreet}

This was selected as the best answer
WPCMSWPCMS
The custom url works great! Thanks.
Marquette77Marquette77

Joker 402 -

 

I am looking to embed a Google Map for a couple different addresses into the Opportunity page itself - how can I do this?

 

Thanks.

 

Tim J.