简体   繁体   English

如何将谷歌地图集成到Android应用程序中以显示GPS的最近地点?

[英]How to integrate google maps in android application to show nearest places with GPS?

I'm creating an Android application to show nearest fuel stations using GPS coordinates for our public service. 我正在创建一个Android应用程序,以使用GPS坐标显示离我们最近的加油站以进行公共服务。 I don't know how to show nearest fuel station according to GPS coordinates and show in map in Android application. 我不知道如何根据GPS坐标显示最近的加油站,以及如何在Android应用程序的地图中显示。 I'm trying it with Xamarin and C# but I think the concept of integrating the map will be same. 我正在使用Xamarin和C#进行尝试,但是我认为集成地图的概念将是相同的。 Kindly help if possible. 如果可能的话,请帮忙。

I would write a comment but still got not enough rep so this is an answer: 我会写评论,但仍然没有足够的代表,所以这是一个答案:

You can use geofence for this. 您可以为此使用地理围栏。 https://developer.android.com/training/location/geofencing.html https://developer.android.com/training/location/geofencing.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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