directions

Google Maps Api v3: How to change the Default waypoint markers in the Directions (set)Panel?

自古美人都是妖i 提交于 2019-12-04 21:20:43
How do you change the markers with custom markers active in the map in the directions panel and change the color aswell from the body? Any help much appreciated. The screenshot: http://i.stack.imgur.com/wYFoc.png Michel Ayres Just to keep alive @MrUpsidown comment and code alive: Short answer: you can't. Longer answer: don't use the directions panel. Create your own, with the information you need (from the directions service response) and add your custom markers. Nov 24 at 16:32 Fiddle var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; var routeBounds

finding route directions from source to destinaton in android

ぃ、小莉子 提交于 2019-12-04 16:39:02
I am new to android, i have managed to write code that displays the google map, i can able to give source and destination addresses and place push pin over there using reverse Geocode concept... the scenario is i want to display the driving,walking,bicycling directions from source to destination point with displaying a line from source to destination.. Peter Knego AFAIK there is no route calculation functionality in Google Maps for Android. Furthermore, live route calculations for navigation are not allowed by Google Maps terms of service , article 8.7. For alternative approach take a look at:

swift get directions in maps app

时间秒杀一切 提交于 2019-12-03 15:43:57
I have an app that displays multiple locations in multiple mapviews. How can I add a button that allows the user to open one of these locations in their maps app and to get directions to it? Christian Wörz If you got an MKPlaceMark you can use an MKMapItem and open the Map-app with the location as launchOption : var mapItem = MKMapItem(placemark: yourPlaceMark) mapItem.name = "The way I want to go" //You could also choose: MKLaunchOptionsDirectionsModeWalking var launchOptions = [MKLaunchOptionsDirectionsModeKey : MKLaunchOptionsDirectionsModeDriving] mapItem.openInMapsWithLaunchOptions

How do we get the shortest distance route from point A to B by default from Google Direction API

非 Y 不嫁゛ 提交于 2019-12-03 12:25:32
How do we get the shortest distance route from point A to B by default from Google Direction API suggested alternative routes? By default it gives us shortest duration routes depending upon the current traffic conditions. I have noticed that google responds with multiple alternative routes if you turn on "provideRouteAlternatives=true", I was wondering if we could send a parameter to Google API so that it will always return shortest distance route by default As Rameshwor has mentioned, the suggested route returned by Google may be optimised for journey time rather than journey distance. If one

IPhone : google maps directions

断了今生、忘了曾经 提交于 2019-12-03 09:22:10
i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points. Everything works well. I'm using google maps api : maps.googleapis.com/maps/api/directions to retrieve xml with all the steps of the direction. But one thing is very strange : I just can't understand why driving direction is not accurate. Between two steps it trace a right line and don't follow the road while walking travel mode trace a very accurate direction, following roads. Driving Mode : http://www.michael-blin.fr/misc/aden/google/driving.png

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

Google Directions API

做~自己de王妃 提交于 2019-12-02 17:45:48
In the JSON output, there is a field "maneuver" within a "step". In this "turn-left", "turn-right", "turn-slight-left", etc. Example is here Where could I find the definition of the "maneuver" field, and the list of possible values? There is no relevant description here Thanks in advance Here is a visual for the lazy ones :) Can't believe google did not document this yet... UPD Believe it or not, but finally they documented it! Please see here . according to this gmaps-api-issue I think google not in hurry to document this part of api :( But I can help with this issue at least with following..

Mapbox Android: How to get directions from current location to a destination you choose?

筅森魡賤 提交于 2019-12-01 11:42:47
Okay so I am fairly new to Mapbox, I have used GMaps prior to this but I found that Mapbox is more capable of doing what I need, the problem is I have hit a bit of a wall. I have used a combination of the examples available on their site e.g. https://www.mapbox.com/android-sdk/examples/geocoding and https://www.mapbox.com/android-sdk/examples/directions I am trying to allow the user to search a destination and then have it turned into coordinates which will be used to plot in the map. I then want to draw a route from their current location to their destination, this is where my problem comes

Is there a way to get directions(just routes) using google for mkmapview?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 07:41:09
问题 I'm using swift on iOS and using MKMapView. I've been working on giving a user a from - to textfield and letting the user have a form of route between the from and to locations. I've got that working on mkmapview using the built in directions and geocoding api calls for Apple. However after using it for a while a realized that a lot of countries are not supported by Apple Apple - Supported Countries For Directions So is there a way to get routes from the google maps SDK and translate them to