在iOS和Android GPS定位 [英] GPS location on iOS and Android

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

问题描述

我的经验有限编程Android应用程序并没有在所有的iOS。我的未来计划的一部分是让我的应用程序能可能记录当前使用的GPS位置在两个Android和iOS。

I have limited experience programming Android apps and none at all for iOS. Part of a future project of mine is to make my app be able to record the current location using GPS possibly on both Android and iOS.

可以在GPS坐标应采取的通用横轴墨卡托的格式像谷歌地球两个平台?如果不是,有一些方法来计算坐标,以这种格式?

Can the GPS coordinates be taken in "Universal Transverse Mercator" format like in Google Earth for both platforms? If not, is there some way to calculate the coordinates to this format?

编辑:任何机会,任何人都会知道在各自的API格式化函数返回

Any chance anyone would know what format the functions in their respective APIs return?

推荐答案

该API将提供一个位置对象(类位置 Android和 CLLocation 的iOS)。这两种API有干将的经度和纬度,这​​是彩车。纬度和经度的GPS坐标WRT的WGS84参考elipsoid。

The API will provide a location object (class Location for Android and CLLocation for iOS). Both API have getters for latitude and longitude, which are floats. Latitude and longitude are the GPS coordinates wrt to the WGS84 reference elipsoid.

如果你需要将这些成一些其他的坐标系中应该有很多的Web引用的。

If you need to transform these into some other coordinate system there should be lots of references in the web.

这篇关于在iOS和Android GPS定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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