谷歌地图,cellid 到位置
根据此示例:
http://www.codeproject.com/KB/mobile/DeepCast。 aspx
发送 cellid 信息(MCC、MNC、towerid 等)时可以请求包含范围的 GPS 坐标(经度和纬度)
有人能告诉我请求/发布到该地址的实际参数吗?
http://www.google.com/glm/mmap
可能是这样
http://www.google.com/glm/mmap?mcc=xxx&mnc=xxx&towerid=xxx
的想知道我们会得到什么回应。
我观察过 OpenCellid 网站,他们首先提供了一些不错的 API,但我也想在谷歌地图中了解这一点(因为他们有更完整的数据库)。
According to this sample:
http://www.codeproject.com/KB/mobile/DeepCast.aspx
It's possible to request a gps coordinate (longitude & latitude) including range when sending cellid information (MCC, MNC, towerid, etc)
Can someone tell me the actual parameter to request/post to this address?
http://www.google.com/glm/mmap
It could be something like this
http://www.google.com/glm/mmap?mcc=xxx&mnc=xxx&towerid=xxx
And i would like to know what response we would get.
I have observe OpenCellid website and they provide some nice API to begin with, but i want to know about that in google map too (since they have more completed database).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这是使用的示例
Here is example for work with
您可以使用 Firefox 使用的 Google Location API(示例参见 http:// /www.mozilla.com/en-US/firefox/geolocation/ ),其网址为 www.google.com/loc/json/。事实上,这是基于 JSON 的 Web 服务和一个最小的 Perl 示例,如下所示:
请记住,Google 尚未正式开放此 API 用于其他用途...
You could use the Google Location API which is used by Firefox (Example see at http://www.mozilla.com/en-US/firefox/geolocation/ ) which has the url www.google.com/loc/json/. In fact this is JSON based webservice and a minimal Perl Example Look like this:
Please keep in mind that Google has not officially opened this API for other uses...
Google 位置 API 的新位置如下:
https://developers.google.com/maps/documentation/geolocation/intro
使用此 API,您可以从 Cell 信息(cellid、mcc、mnc 和 lac)检索位置
The new place for the Google location API is the following :
https://developers.google.com/maps/documentation/geolocation/intro
With this API, you can retrieve a location from Cell information (cellid, mcc, mnc, and lac)
基于 GeolocationAPI,以下是我的代码的一些部分:
对象
GsmParams
只是一个包含 GSM 参数 MCC、MNC、LAC、CID 的 Java bean。我认为你可以轻松创建一个相同的类。建立连接后,您可以调用
conn.getInputStream()
并从 Google 地图获取结果。然后使用JsonReader
解析数据...Base on GeolocationAPI, here are some parts of my code:
The object
GsmParams
is just a Java bean containing GSM parameters MCC, MNC, LAC, CID. I think you can create a same class easily.After getting connection, you can call
conn.getInputStream()
and get results from Google Maps. Then useJsonReader
to parse data...正如其他线程中所述,还请查看 https: //labs.ericsson.com/apis/mobile-location/documentation/cell-id-look-up-api 用于免费的小区 ID 数据库,用于从 cellid、mcc、mnc 和 lac 获取坐标。
As noted in other threads also check out https://labs.ericsson.com/apis/mobile-location/documentation/cell-id-look-up-api for a free cell-ID database to get coordinates from cellid, mcc, mnc, and lac .