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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.