简体   繁体   中英

How to get the points( Latitude and Longitude) between 2 points from google map in android?

I am working in android studio , and the user will select 2 end points on the map, How can I get the points between these 2 end points? so I can compare some points i have with these points??

Also another Q. : I will save the location of the user,if I have points How to know the closest point to the user?

Thank you.

Here is a complete answer of your problem.Google provide an Directions api for finding way points between two geo location see here .

Go through this link. it has complete example with source code.

Hope you will get solution to your problem.

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