如何在andriod ap中集成gps跟踪? [英] How to integrate gps tracking in andriod ap?

查看:101
本文介绍了如何在andriod ap中集成gps跟踪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个简单的andriod应用程序来跟踪出租车像超级应用程序。对于它我无法理解如何使用GPS在andriod中实现出租车的实时跟踪。



我尝试过:



我刚刚在我的andriod app中集成了简单的谷歌地图。

解决方案

Android为您提供API,您可以轻松地与您的应用程序集成,GPS就是其中之一。通常,您从API合同中使用这些服务,除非您在自己的服务器,Web应用程序等上构建了API。否则,请使用Google提供的API。如今,您会为这些GPS服务寻找Firebase或Google Play服务。



我写了一篇文章,全面概述了GPS; Ok Android,Broadcast my location! [ ^ ]虽然使用了旧的API,但解释了正确的细节。


请参见此处

I am trying to build a simple andriod app to track taxi like uber app. For it i am unable to understand how live tracking of taxi can be done using GPS in andriod.

What I have tried:

I have just integrated simple google map in my andriod app.

解决方案

Android provides you with APIs, that you can easily integrate with your application, GPS is one of them. Typically, you consume those services, from the API contracts, unless you have an API built on your own server, a web application, etc. If not, consume Google provided APIs. Nowadays, you would look for Firebase, or Google Play Services for these GPS services.

I wrote an article, that gives a complete overview of GPS; Ok Android, Broadcast my location![^], although uses an old API but explains the concept in a proper detail.


See here.


这篇关于如何在andriod ap中集成gps跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆