我可以使用来自手机信息塔的信息在没有GPS服务的j2me中获取移动设备的位置 [英] Can I fetch position of mobile device in j2me having no GPS service using information from cell tower

查看:235
本文介绍了我可以使用来自手机信息塔的信息在没有GPS服务的j2me中获取移动设备的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从没有安装GPS装置的j2me编程中获得移动设备的位置吗?

我可以使用手机信息塔获取位置吗?我听说过关于三角测量的方法。



经历了 http://developers.sun.com/mobility/apis/articles/location/ doc



在此文档中,他们仅为安装了GPS应用程序的手机提供了代码。



关于其中没有GPS的其他人?他们如何获得位置?



更新我有一个链接可以回答我的问题: http://mobiforge.com/developing/story/adding-location-a-non-gps -phone-introduction-cellid

解决方案

你可以得到最近的手机信号塔的ID。然而,这取得的方式不同于制造商。在诺基亚手机上,您可以通过如下方式获得:

  cellID = System.getProperty(Cell-ID); 
if(cellID == null)
cellID = System.getProperty(com.nokia.mid.cellid);

在索尼爱立信上,您有这个:

  System.getProperty( com.sonyericsson.net.cellid); 

一旦获得单元ID,您可以轻松使用 OpencellID API 来检索更多关于id的信息(坐标以及所有内容)。尽管如此,这两个挑战是:


  1. Cell ID可能不准确到距离高达km $ b
  2. 信息可能无法在opencellid.org上找到


Can I get a location of mobile devices from j2me programming having no GPS unit installed?

Can I obtain the location using cell tower info? I heard about triangulation method.

And gone through http://developers.sun.com/mobility/apis/articles/location/ doc

In this doc they have given code only for mobile phones having GPS application installed.

But what about the others which does not have GPS in them? How can they get the location?

update I got a link which answers my question: http://mobiforge.com/developing/story/adding-location-a-non-gps-phone-introducing-cellid

解决方案

You can get the ID of the nearest cell tower to you. The way this is fetched however differs from manufacturers. On Nokia phones, you can get it through something like these:

cellID   = System.getProperty("Cell-ID");
if (cellID == null)
    cellID   = System.getProperty("com.nokia.mid.cellid");

while on Sony Ericsson, you have this:

System.getProperty("com.sonyericsson.net.cellid");

Once you get the cell id, you can easily use the OpencellID API to retrieve more information (coordinates, and all that) about the id. The two challenge with this though is that

  1. Cell ids may not be accurate to a distance of up to a km
  2. The information may not be available on opencellid.org

这篇关于我可以使用来自手机信息塔的信息在没有GPS服务的j2me中获取移动设备的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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