Does anybody know how to draw circle route (path)? I can't find any solution in the documentation of google maps for android. Yes, I know, that I can draw path with polyline but I want to differ CAR and WALK path. You can see, that it is possible in google maps, when you choose WALKING direction.
Does anybody tried to solve this problem?
Related
I am trying to draw a path on roads and follow some given points.I am using Google Directions API to follow the roads.I put some markers on roads and link these points with polylines.I need to follow the red line but it follows and draws blue lines.How can I ensure this?
Verify if it is a road at all by zooming in.
Also Make sure that u can tread in that direction in the road.Sometimes roads are one way, So google automatically chalks out an alternative path.
Hope this helps.
did anyone find a way to draw polyline over google traffic info on android v2 maps?
I have found this issue
https://code.google.com/p/gmaps-api-issues/issues/detail?id=4780
no one seems to take care of it...
I wonder if there is some kind of work around for this problem
Thanks
I want to draw a line from one gps point to another.
Is there a way which uses the streets on the map? And not just the air line?
Does anyone have an example code for android programming in eclipse?
I didn't find any suitable way in google which I will understand. I'm just a beginner.
Thank you for the outset. :)
You can check this blog post I wrote on this topic exactly:
Google Maps V2: Draw Driving Direction on Map:
There is also a sample project there that you can use.
yes there is its called Google Directions API
I already searched on StackOverflow and Google. But i didn't find a real answer. I think there is just no DirectionsRenderer in the Android API. But can you acknowledge this?
If there is not DirectionsRenderer, how could i use the Android API to show a GoogleMaps and draw a Route on the Map?
I want to draw a nice route. Not just lines between the coordinates of each route-section which are also delivered from the Directions-Request.
I think there is just no DirectionsRenderer in the Android API. But can you acknowledge this?
There is no DirectionsRenderer in Maps V2. You can tell this by reading the documentation.
how could i use the Android API to show a GoogleMaps and draw a Route on the Map?
There is nothing in Maps V2 to support this.
I want to draw a nice route. Not just lines between the coordinates of each route-section which are also delivered from the Directions-Request.
You will need to find some Web service that will serve up coordinate information for the route with sufficient granularity (e.g., every 10m) to give you your "nice route", then use a Polyline or something like that for actually rendering the route.
SO i found out that it is possible to just take the legs, then the steps and within the steps you will find the "points".. when you decode the points string its a very detailed list of all coordinates.
with this coordinates, you can easily draw a nice route on the map.
so it's possible without the need of a additional Web-API.
i am making an app in which i have to draw path on map as my devices moves. I searched my tutorials but all show to draw path b/w two points but i want to draw path as my device moves.
Any help regarding this will be appreciated.
what do you mean as your device move? either way you have to get location updates using location listener and on every new update create a Polyline between the coordinates of the new update and the previous one.
UPDATE: Here are some post that show you how to draw a polyline with direction:
Is there a way to show road directions in Google Map API v2?
Get driving directions using Google Maps API v2
I could use the concepts there to draw you the line you want.