Actually i need a list of coordinates on which the line is drawn mention in the picture in details
Asked
Active
Viewed 957 times
1 Answers
-1
When drawing a PloyLine
save it in a global variable , If there are multiple PolyLines
save them in a list . Use method polyline.getPoints()
on PolyLine
variable it will give you the List<LatLng>
Edit: If you want multiple points just find the center point between two points check midpoint between two latitude and longitude

Manohar
- 22,116
- 9
- 108
- 144
-
polyline.getPoints() will only give us the lat,long of starting and ending of the polyline where markers are placed – Waleed Feb 13 '19 at 07:40
-
what else do you want ? – Manohar Feb 13 '19 at 07:40
-
If you want more points on line just keep calculating center points between two latlng – Manohar Feb 13 '19 at 07:43
-
i need a Coordinates (lat, long) of intermediate points between two markers on the polyline – Waleed Feb 13 '19 at 07:43
-
is there any function to calculate the center point or i have to do it manually? – Waleed Feb 13 '19 at 07:44
-
yeah i just implemented it in my code hope for the best results – Waleed Feb 13 '19 at 07:59
-
which code? , there are more solutions over there you can try different one – Manohar Feb 13 '19 at 09:37