Android的全球定位系统路由系统 [英] Android Gps Routing system

查看:218
本文介绍了Android的全球定位系统路由系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,将定位用户(假设用户是在路上)和应用程序将创建最短的路线,为用户采取能够去选择目标用户。定位用户不是问题,因为有一个为这里的API:

I'm developing an android application that would locate the user(assuming that the user is on the road) and the app will create the shortest route for the user to take to be able to go to the users chosen destination. Locating the user isn't the question since there's an API for that here:

http://www.vogella.com/articles/AndroidLocationAPI/article.html

所以这里的渔获物。道路,路口和它们的距离可以通过在code变量映射或声明,但我的问题是,GPS的API,我发现到目前为止只返回一个经度和纬度,而不是路名或能够在图形用于映射的最短路径。我需要帮助就如何我可以创建我们现在给出的Andr​​oid GPS资源的最短路线。

so here's the catch. The roads ,intersections and their distances can be mapped or declared via variables in the code but my problem is that the GPS APIs i found so far would only return a longitude and latitude and not the road names or the graphs that can be used for mapping the shortest path. I need help as to how i can create the shortest route with the given Android GPS resources we have now.

假设:3G或WiFi连接始终可用。

Assuming: 3G or wifi connection is always available

推荐答案

看看我们的开源OpenTripPlanner为Android应用程序中的code(Apache 2.0的许可下):
https://github.com/CUTR-at-USF/OpenTripPlanner-for -Android /维基

Check out the code (licensed under Apache 2.0) in our open-source OpenTripPlanner for Android app: https://github.com/CUTR-at-USF/OpenTripPlanner-for-Android/wiki

请参阅该应用程序的完整总结维基,但这里有一个简短的说明:

See the wiki for a full summary of the app, but here's a short description:

OTP为Android采用开源 OpenTripPlanner服务器实例来规划路线多式联运(公交车,自行车,步行)通过调用到 OTP服务器REST API 。一旦行程计划从服务器检索,示出给用户。

OTP for Android uses the open-source OpenTripPlanner server instances to plan multimodal routes (bus, bike, and walk) via calls to the OTP Server REST API. Once the trip plan is retrieved from the server, it is shown to the user.

OTP使用 OpenStreetMap的数据道路/人行道/自行车车道信息,并的常规公交Feed规范数据中转信息。

OTP uses OpenStreetMap data for road/sidewalk/bike lane information, and General Transit Feed Specification data for transit information.

这篇关于Android的全球定位系统路由系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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