Link to Googel Map

Happy Holidays everyone,

My client asked me if we can make a link from Notes document with address (zip code) then link to googel map. Anyone has experience to do that, please help!

Thanks a lot in advance.

Linda,

Subject: Link to Googel Map

A number of years ago, the code was posted- might have been in the (now gone) sand box- I use it all the time.“Google Maps

  • @ReplaceSubstring(ProjStreetAddress;" “:”#" ; “+” :“%23”)

  • “+”

  • @ReplaceSubstring(ProjCity;" " ; “+”)

  • “+”

  • @ReplaceSubstring(ProjState;" " ; “+”)

  • “+”

  • @ReplaceSubstring(ProjCountry;" " ; “+”)

Subject: RE: Link to Googel Map

Hi Thomas,

It works fine.

Thank you very much!

Linda

Subject: Link to Googel Map

The Google Static Maps API will give you what you need – and the example in the “A Quick Example” section should give you just about everything you need. The address you are linking to should be the center value, and the zoom and markers would be whatever seems most appropriate for your needs. See:

Subject: RE: Link to Googel Map

Hi Stan,

First of all, thank you very much for all your help in 2010 (not only this year), wish you Happy new year and all the best for 2011!

I took a look “A Quick Example”, the question is “anywhere on your webpage where you can place an image”, I will use it in Notes database, not Webpage, do you think it will work?

what I am thinking is I will create a button with the URL, link to it, for the URL below:

http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap

&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318

&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=false

I should hard coding for my address, am i right? is there any way, just let it pop up and user enter their address or zip code to get the map?

I do appreciate that.

Linda

Subject: RE: Link to Googel Map

It’s a URL so you can use it anyway you can put a URL, Inside a notes document, inside a form, inside a word document, a shortcut on your desktop, if you can put a URL somewhere you can use it.

Subject: RE: Link to Googel Map

Hi Carl,

Would you please tell if I want to create a button in Notes document and put a URL there link to googel map, how to do it?

Thanks,

Linda

Subject: RE: Link to Googel Map

You can take the code shared by Thomas in this thread and put it in a button

Example

URLtoOpen := “Google Maps

  • @ReplaceSubstring(“1600 Pennsylvania Avenue, NW”;" “:”#" ; “+” :“%23”)

  • “+”

  • @ReplaceSubstring(“Washington”;" " ; “+”)

  • “+”

  • @ReplaceSubstring(“DC”;" " ; “+”)

  • “+”

  • @ReplaceSubstring(“USA”;" " ; “+”);

@URLOpen(URLtoOpen)

results in

Will open to the White House on Google Maps.

Subject: RE: Link to Googel Map

Hi Carl,

It works fine.

Thank you very much!

Linda