Create Google Maps from URLs

Is there a way to build multiple addresses on one static map from the Google Maps API?

The following is an example of a single address:

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=H9R1H3+57%20EASTVIEW%20AVENUE 

What would be an example URL of this type?

+4
source share
5 answers

There is a jquery plugin, I used it and it works great

check

http://gmap.nurtext.de/examples.html

+3
source
+2
source

The only way is to create a KML file that displays mulitple points.

It could even be a dynamic script.

eg,

http://server.com/kml?a=adress+one&b=address+two&c=address+three

may be a dynamic script that reads an address from a URL and outputs KML code.

You can pass this URL to Maps (maps accept the URL of the KML file in q = param-propelly, of course)

0
source

There is no need to use a KML file, we can directly access the Google Places API. The Google Places API response consists of all (actually a maximum of 20) places around your current location. sample url request as below.

 https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI 

The response may be in Json or XML, depending on the response we are requesting.

0
source

All Articles