简体   繁体   中英

Working with Markers and Polylines Google Maps android

I'm doing an app in Android that works with google maps, in which a user establishes routes and another user can add markers to indicate traffic jam , something like waze. The routes are polylines and the traffic jam are markers from a database.

My question: Is there a function or something that I can use to know when a route (polyline) is above a marker in the map ?. I hope I was clear, thank you.

使用折线的LatLng列表和标记的位置,您可以使用https://github.com/googlemaps/android-maps-utils中的 PolyUtil.isLocationOnPath

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM