directions

need to remove last polyline and create current polyline

不羁的心 提交于 2019-12-13 16:48:07
问题 i do google map with google direction i use class http://www.akexorcist.com/2015/12/google-direction-library-for-android-en.html that someone build for google direction. everything is work good, and the polyline show on the map. but when i need to click another direction like walking direction or drive direction i see 2 polyline on the map and i want to see only the current polyline. here i create the polyline and remove the polyline in the start, then the polyline not show at all. i dont

create itinary google maps android

流过昼夜 提交于 2019-12-12 03:15:33
问题 After using gps for geolocalization, i want to create an line to show the itinary between two points. I know i need to use the polyline but after the JSON parsing, I don't know how to use the polyline options and I don't know how to use the part of Json named "steps". For the Http conection, i use the Volley Library. This my code: public void geoLocate(View view){ String start = start_address.getText().toString(); String destination = destination_address.getText().toString(); Geocoder gc =

Google Direction APIs error: REQUEST_DENIED

孤人 提交于 2019-12-11 15:20:08
问题 We are developing and that needs the direction APIs to measure the distance between 2 addresses. The only option I have is http as this part of the app doesn't have a map. I am trying to understand the proper usage of the direction APIs, related Keys and quota. First we were issuing the http call without a key. maps.googleapis.com/maps/api/directions/json?origin=43.65077%2C-79.378425&destination=43.63881%2C-79.42745 Sometimes we get back the proper response, but many times I get OVER_QUERY

Google maps API: Directions result not showing

末鹿安然 提交于 2019-12-11 12:41:34
问题 I'm creating my own styled map using Google Maps JS API. I wanted to add directions functionality to map, i followed the official tutorial (Under Displaying the DirectionsResult title), but the final route is not appearing... I debugged my code and I found, than directionsService.route function returns google.maps.DirectionsStatus.OK and directionsDisplay.setDirections(result) is really called with no JS error... So directions are successfully computed but not showed in my map. A tried to

Adding multiple directions requests together Google Maps API

霸气de小男生 提交于 2019-12-11 11:52:31
问题 I'm trying to get directions for a user provided origin and destination, while showing directions to a middle location for ALL travel modes (driving, walking, bicycling, transit). I have this coded using waypoints, but I just discovered that the Google Maps API doesn't support waypoints for public transit--as discussed in a previous question here. I'm having difficulty finding any examples for how to go about piecing together multiple directions requests without using waypoints. Is there a

How would you providing routing for directions between points on a map? What are the missing pieces?

隐身守侯 提交于 2019-12-11 01:34:45
问题 With iOS 6 the Maps app is dropping Google Maps. The terms of the Google Maps SDK states that if you plot directions with their service you must show it on their map. Since this will no longer be the case I need to explore other options to get directions and display routes on a map. I have found that MapQuest and Nokia each offer an API to provide direction and routing services. MapQuest - http://open.mapquestapi.com/directions/ Nokia - http://api.maps.nokia.com/en/apireference/2.2.0/symbols

finding route directions from source to destinaton in android

守給你的承諾、 提交于 2019-12-09 22:04:14
问题 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.. 回答1: AFAIK there is no route calculation functionality in Google Maps for Android. Furthermore, live route calculations for navigation are not

Adding InfoWindow on Google directions route

扶醉桌前 提交于 2019-12-09 11:46:17
问题 I am trying to add an InfoWindow to directions route. there are lots of examples out there for adding InfoWindow on an event listener on a marker. But how can I move the InfoWindow to show on the actual planned route from one marker to another. Someone already tried to ask this question before but no response (InfoWindow on Directions Route). Anyway I did a lot of googling and only found one question similar to this but than again there is no response to that. I tried infowindow.open(map,this

Google Maps Directions in XML or JSON with other travel modes

蓝咒 提交于 2019-12-09 07:18:18
问题 I'm trying to get the directions for travel modes other than driving but the api doesn't seem to respect the dirflg parameter. http://maps.googleapis.com/maps/api/directions/json?origin=111%20Davisville%20Avenue,Toronto,ON&destination=469%20King%20Street%20West,%20Toronto,%20ON&sensor=false&dirflg=w Can anyone tell me what the correct url is? Thank you in advance. 回答1: the parameter is mode, as in mode=walking: http://maps.googleapis.com/maps/api/directions/json?origin=111%20Davisville

How to find the latitude and longitude falls on waypoints using Google API

Deadly 提交于 2019-12-08 13:57:55
问题 I have a group of lat and long which are the stops of a bus. I need to find the user latitude and longitude is falling on the route. Find the link to my demo Codepen I draw the route using waypoints as well as polylines. Using containLocation() function I Can find the user location falls on the route. But it works somewhere in polylines. I need to make this working on waypoints. If you click near polyline you will get a red circle or blue triangle. Red indicates the point not falling on the