driving-directions

Is there a way to add custom roads (e.g. off-road routes) to google maps and then get directions to use them?

泪湿孤枕 提交于 2019-12-04 04:00:56
问题 I want to add some custom roads using google maps api (i.e. off-road routes, gravel roads that aren't marked as roads in the map, etc) and then use those roads in conjunction with existing roads to get directions. I know this isn't possible out of the box, but I wonder if there are any tools, custom implementations or 3rd party libraries to do that. 回答1: No, there isn't a way to do this at this time. You would have to essentially create your own routing application. 来源: https://stackoverflow

How to get google driving instruction using google map api on android?

送分小仙女□ 提交于 2019-12-03 22:22:56
I'm newbie at android programing. I have read many interesting driving direction application. so, I tried to build map and gps based application. I can get and show direction between 2 point , but I don't know how to show textual instruction like http://i.stack.imgur.com/7i7ei.jpg Can somebody help me out? Or give me toturial? Thank for you kindness This api gives you an information about the route steps: http://maps.googleapis.com/maps/api/directions/json?origin=&destination=&sensor=true&alternatives=true&units=metric ; Parse the JSON, create listActivity and put the data in it.That is all P

Rotate marker based on driving direction

ぃ、小莉子 提交于 2019-12-03 17:09:18
问题 I have a marker in my Google Maps map that looks like this: When the user is driving, I want to rotate it based on his driving direction. How can I achieve this? I should probably use previous location and current location coords for calculation, but I have no idea how. 回答1: If you use GPS for locating the user then the Location object you get in onLocationChanged contains the bearing. If you only have the two coordinates (e.g. you only have coordinates from network location provider), you

Rotate marker based on driving direction

ぃ、小莉子 提交于 2019-12-03 05:56:48
I have a marker in my Google Maps map that looks like this: When the user is driving, I want to rotate it based on his driving direction. How can I achieve this? I should probably use previous location and current location coords for calculation, but I have no idea how. If you use GPS for locating the user then the Location object you get in onLocationChanged contains the bearing . If you only have the two coordinates (e.g. you only have coordinates from network location provider), you can use Location.bearingTo() to calculate the bearing of two coordinates: Location prevLoc = ... ; Location

Google map direction services waypoints more than 50

和自甴很熟 提交于 2019-12-03 04:35:16
问题 Documentation says that waypoints limit is 8 points. But I have to find best waypoints order list from more than 50 waypoints. How to do that? I am able to find waypoints order by using Start + Destination + 8 Waypoints But I need help for more than 50 Waypoints 回答1: function initMap() { var service = new google.maps.DirectionsService; var map = new google.maps.Map(document.getElementById('map')); // list of points var stations = [ {lat: 48.9812840, lng: 21.2171920, name: 'Station 1'}, {lat:

Google map direction services waypoints more than 50

孤人 提交于 2019-12-02 18:53:38
Documentation says that waypoints limit is 8 points. But I have to find best waypoints order list from more than 50 waypoints. How to do that? I am able to find waypoints order by using Start + Destination + 8 Waypoints But I need help for more than 50 Waypoints function initMap() { var service = new google.maps.DirectionsService; var map = new google.maps.Map(document.getElementById('map')); // list of points var stations = [ {lat: 48.9812840, lng: 21.2171920, name: 'Station 1'}, {lat: 48.9832841, lng: 21.2176398, name: 'Station 2'}, {lat: 48.9856443, lng: 21.2209088, name: 'Station 3'}, {lat

Is there any way to determine the driving time between two locations using Apple's Maps API?

纵然是瞬间 提交于 2019-12-01 23:11:45
I am evaluating using google's Distance Matrix / Places / Maps API, versus Apple's Maps api for an iOS app. I am looking at the MKDirectionsRequest class, and I can't seem to find a way to determine what the driving time is between the two points. If this is possible using the apple Maps API, could someone please point me in the right direction? I am hoping it would be possible to accomplish this just using Apple's API, but it looks like this is only going to be possible with Google's API. No, apple does not have any such way to get driving time between 2 locations. I'll suggest using Google

Is there a way to add custom roads (e.g. off-road routes) to google maps and then get directions to use them?

若如初见. 提交于 2019-12-01 21:21:10
I want to add some custom roads using google maps api (i.e. off-road routes, gravel roads that aren't marked as roads in the map, etc) and then use those roads in conjunction with existing roads to get directions. I know this isn't possible out of the box, but I wonder if there are any tools, custom implementations or 3rd party libraries to do that. No, there isn't a way to do this at this time. You would have to essentially create your own routing application. 来源: https://stackoverflow.com/questions/9880053/is-there-a-way-to-add-custom-roads-e-g-off-road-routes-to-google-maps-and-the

Google Maps API [Directions API] Waypoints limitation?

跟風遠走 提交于 2019-11-30 13:51:10
Documentation says that waypoints limit is 8 points. But I have to draw a line with more than 8 waypoints. How to do that? Try sending multiple requests. The Google Maps Api V3 says : MAX_WAYPOINTS_EXCEEDED indicates that too many DirectionsWaypoints were provided in the DirectionsRequest. The maximum allowed waypoints is 8, plus the origin, and destination. Maps API Premier customers are allowed 23 waypoints, plus the origin, and destination. You can go for API Premier but i guess it will cost you about 10.000$ a year 来源: https://stackoverflow.com/questions/4418875/google-maps-api-directions

Google Maps HTTP API for driving and walking directions

北慕城南 提交于 2019-11-30 09:33:57
Do you know how I can get walking directions from Google by giving two specific coordinates? How can I send simple HTTP GET requests and have the result in a KML file? I don't want to geocode, but get the driving directions as the KML file returned by this method: http://www.gringod.com/2008/02/26/save-google-maps-driving-directions/ Daniel Vassallo There is no documented and approved method at the moment to access the Google Maps Directions API via an HTTP request ( update : Google added walking and driving directions via web services in May, 2010). Nevertheless, an undocumented method that