What I am looking for is the specific parameters I need to go directly to google maps with 8 locations (address or lat/long coordinates) already set with driving directions. Is something like this doable or mere pie in the sky thinking?
see this description of available Google Maps parameters
saddr: - start
daddr: - destination
to: - waypoints
example
Related
I am developing an app that displays the Distance & path between 2 distances. In this case I have used following addresses:
Source: Major Bhola Ram Enclave
Destination: Ring Road Mall, Sector 3, Rohini, New Delhi, Delhi
When I use Directions API then I get following result, see image below:
But, when I search these addresses in Google Maps then I get different Result.
Click here to see Google Maps result
I searched a lot about this but I couldn't find any reason/solution for this.
Please guid me in right direction.
Thanks.
Those are not addresses, they are places. If you want a similar result to Google Maps, you need to use the placeId or the coordinates returned for that place from the places service in the directions request.
http://www.geocodezip.com/v3_example_geo2.asp?addr1=Major%20Bhola%20Ram%20Enclave&addr2=Ring%20Road%20Mall,%20Sector%203,%20Rohini,%20New%20Delhi,%20Delhi&place=1&place=2
(uses the results from the place service)
I am trying to open up google maps in the browser by passing it 4 points. What is the scheme to launch google maps so it inputs a start coordinate and an end coordinate?
It's not offically documented, but currently this works:
https://www.google.de/maps/dir/origin_lat,origin_lng/destination_lat,destination_lng/
e.g. Chicago to Detroit:
https://www.google.de/maps/dir/41.87,-87.62/42.33,-83.04/
You may also use addresses:
https://www.google.de/maps/dir/origin_address/destination_address/
https://www.google.de/maps/dir/Chicago/Detroit/
The URL parameters for this Google API are destination and origin, here you can use adresses or coordinates as values:
https://www.google.com/maps/embed/v1/directions?origin=sydney&destination=sydney&key=...
but be aware that for this service you need an API key. When using the javascript API you don't need an API key, at least if you don't have too much traffic.
We want to implement a logistic software program to fetch all the places between two locations.
As an example A is the starting point and B is the destination. Now we would like to fetch all the area names with in a radius of 500 Meters from the google maps at starting point (A), destination point (B) and all the places between A and B.
Is there any API which can be integrated or any kind of help is welcome!!!!
Of course there is! You should use Google Places API and feed it with the points (lat, alt) that you get from your Google Maps route. Remember to use the radar function.
I need to find points that define delimitations of neighbors from Chicago.
My question is: How can I find a list with latitudes/longitudes of all the points that delimit neighbors. For example:
Gold Coast from Chicago is a polygon with 6 points as seen on google map: http://maps.google.com/maps/ms?ie=UTF8&t=m&vpsrc=6&source=embed&oe=UTF8&msa=0&msid=206241844247425110008.0004b43f0262868b8037f
What is the best way to extract this points so I can draw poly-lines over google map with google API for specific neighbors?
Edited:
So with addresses, which you already have, you can create a Maps API site:
http://code.google.com/apis/maps/
and use the Geocoding API to get the latitude and longitude of each of the addresses.
Added: Seems based on your comment that you're looking for neighborhood boundary data. Google Maps doesn't provide that data. There are different venders that do, one I have heard of is the Zillow Neighborhood API. I have never used it so I don't know much about it.
I'm writing a Google Maps mashup. I ask google the path from one location to another location. Google Maps gives me a Map with the route. I would like to take this route somehow and modify it (adding or removing points) before displaying it in the map. Is it possible? How would you do that?
Many thanks!
According to the Google Maps API Reference, there is a loadFromWaypoints function which will take waypoints in an Array and use them to calculate directions.
Edit: +1 for Cannonade. What he said.