[英]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? 我在android studio中工作,用户将在地图上选择2个端点,如何获得这2个端点之间的点? 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 . 这是您问题的完整答案。Google提供了Directions api,用于查找两个地理位置之间的路标(请参见此处) 。
Go through this link. 通过此链接。 it has complete example with source code.
它有完整的示例和源代码。
Hope you will get solution to your problem. 希望您能解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.