Questions tagged [google-polyline]

Google Polyline class in Google Map v3

A polyline is a list of points, where line segments are drawn between consecutive points.

481 questions
8
votes
2 answers

Vehicle movement using bearing

Currently working on vehicle tracking App where I will have to show the movement of the car on the polyline which is set from current location to destination and on the movement of the car I will have have to erase the coordinates like Uber/Ola. I…
androholic
  • 686
  • 6
  • 23
8
votes
2 answers

What exactly are "levels" in polyline encoding/decoding?

What are "levels" in polyline encoding/decoding, and exactly how do they relate to map zoom levels in Google Maps API v3 or Android Maps API v2? The only description I can find is from the Interactive Polyline Encoder Utility: Polylines in Google…
8
votes
1 answer

Android Draw polylines with arrow on google map with direction path

I have added polylines but not able to add arrow with direction on google map should be display as below And when it zoom up, more arrow should be display like below I have tried reading various blogs and codes but not able to get the goal I have…
8
votes
4 answers

Google Maps for iOS, swift - How to show entire polyline between markers?

I am trying to fit a polyline in the google map view. The polyline was acquired through overview_polyline in the google maps directions api. Wondering how I would be able to convert an encoded polyline into something that can be worked with. I need…
lifewithelliott
  • 1,012
  • 2
  • 16
  • 35
8
votes
5 answers

ios Google SDK Map cannot create dotted polylines

I have called the below method to draw the dotted polylines between the markers. When it comes to the execution, it shows that only solid lines are drawn. Would you please tell me how to draw dotted lines on to Google Map ? - (void)…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
7
votes
2 answers

How to draw polyline on google map with two different colors between two locations

I have two locations and i am in need two draw polyline between these two location, I am done with drawing the polyline between these locations. Issue is, that polyline is of one color but due to requirement i have to draw polyline of two different…
Santosh Yadav
  • 338
  • 2
  • 4
  • 15
7
votes
4 answers

Decoding Google Maps API Encoded Overview Polyline with Javascript for use in Mapbox

Have been searching for various JS functions that can decode an encoded polyline to a geoJSON string, and all that I try come up with really odd lat,lng points. Usually starting in the correct location but then wandering way off course. Here's one…
Neil Simpson
  • 197
  • 1
  • 3
  • 10
7
votes
3 answers

Get Array of all points of Polygon - Google Maps Drawing Tool API-3

i am using Google Drawing tools for drawing polygon/rectangle on google maps, now i need to show markers that falls inside the drawn polygon and for that i am using geometry.poly.containsLocation method which takes a point(latLng) and an array of…
kam
  • 425
  • 2
  • 6
  • 24
7
votes
1 answer

What are the design decisions behind Google Maps encoded polyline algorithm format?

Several Google Maps products have the notion of polylines, which in terms of underlying data is basically just a sequence of lat/lng points that might for example manifest in a line drawn on a map. The Google Map developer libraries make use of an…
Bryce Thomas
  • 10,479
  • 26
  • 77
  • 126
7
votes
2 answers

Google Maps V3 Polyline Drawing / Editing / Continue Drawing

I'm searching for a way to draw a polyline via google maps v3. Once complete be able to edit the polyline and then continue drawing the same polyline. I've read much about the DrawingManager (introduced in 3.7) and read much of the API of V3 found…
Marven
  • 71
  • 2
  • 4
6
votes
1 answer

Google geometry Api in C#

I have a point (latitude,longitude) ex : 33.959295,35.606100 and I'm looking for a way in c# to check if this point is on a specific route (a list of points or a polyline). I did some research and I found that isLocationOnEdge function contained…
User7291
  • 1,095
  • 3
  • 29
  • 71
6
votes
2 answers

Google Maps Utils how to decode polylines values from list?

I'm using Google Maps Directions Api and the Google Maps Utils library to draw a path between my location to a marker, I was retrieving the field overview-polyline from the Directions Api, but the polyline that was drawn was not right so now I'm…
alb
  • 347
  • 2
  • 7
  • 24
6
votes
2 answers

Google Map SDK: Draw correct polyline in google map as Device Moves in Background

I am using Google Map SDK for iOS. I am drawing polylines in Driving mode. But when i stop,and Zoom google map then, my Current position cursor automatically moves and redraw zigzag polylines, due to that all previous polylines drawn get overlapped…
ChenSmile
  • 3,401
  • 4
  • 39
  • 69
6
votes
3 answers

Drawing route on Google Maps using Google Maps Android API v2

I have an app in which I am continuously tracking user's location using Google Plays new service API for Maps. I am updating the location every single second and I am also checking user activity like STILL, TILTING, IN VEHICLE, etc to get the better…
Scorpion
  • 6,831
  • 16
  • 75
  • 123
5
votes
5 answers

google maps middle of a polyline (centroid?)

I have a list of polylines, just like google maps does when I click on the polyline I want an infowindow to show up just where I clicked, and it works just fine with this function function mapsInfoWindow(polyline, content) { …
fxck
  • 4,898
  • 8
  • 56
  • 94
1
2
3
31 32