如何了解网络用户的位置? [英] How to learn location of the web user?

查看:96
本文介绍了如何了解网络用户的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经开始开发位置感知应急服务应用程序。用户可以通过计算机,智能手机甚至通过WAP连接。



我们面临的问题是,我们不知道如何获取用户的位置正在寻求服务。如果它是支持GPS的智能手机,它可以通过应用程序找到。我已经看到谷歌地图在GPS无线智能手机(如诺基亚E系列)中使用BTS塔的位置定位手机。但是,我无法在诺基亚网站上找到任何可用于获取该位置或BTS塔式定位服务的API。

而电脑的主要问题依然存在。如果我能找到计算机的城市就足够了。我在几个网站(例如ip2location.com)中看到了将IP地址定位到城市级别(有时甚至更多)。如果我总结我的问题 -


如果我总结我的问题 -

ol>
  • 如何获取基于BTS塔的手机定位服务?

  • 如何定位用户的IP地址至少达到城市级别?

  • 如何将经纬度转换为地址(至少达到城市级别)?免费?

  • 如何将地址转换为纬度经度?免费吗?
  • p>有几个常见的手机三角网提供商(或越来越常见的WiFi网络三角测量):Skyhook Wireless,Google和Apple。您可以尝试制作与这些公司打交道,或者将自己的定制软件安装在每个人的设备上,但这听起来像很多工作。我认为更成功的将是利用一些框架抽象,这些抽象可以在很多设备上工作,而无需软件处理每个细节。

    如果您的用户正在使用Web,则为支持它的现代浏览器(桌面,笔记本电脑和移动设备)提供对设备当前位置的实现无关的访问。正如你所看到的,还有原生的特定于平台的框架(iPhone和Mac OS X上的CoreLocation,Windows 7位置平台,Android的LocationManager等)。



    如前所述,地理编码和反向地理编码服务可以帮助您在经纬度坐标和城市地址之间进行转换,反之亦然。

    We have started developing an application for location aware emergency service. The users can connect through computer,smart phone or even through WAP.

    The problem we are facing is, we don't know how to get the location of the user who is asking for service. If it is GPS enabled smart phone, it can be located though the app. I have seen google map locating the cell phone using BTS tower's location in GPS-less smart phones (Like Nokia E-series). But I couldn't find any API in Nokia site which I can use to get that location or BTS tower based locating service.

    And the main problem remains for the computer. It is enough if I can locate the city for computers. I have seen in several sites (like ip2location.com) locating the IP address up to the city level (sometimes more). Isn't there any other way to locate IP address for free of charge?

    If I summarize my questions-

    1. How to get BTS tower based location service for cell phones?
    2. How to locate user's IP address upto at least city level ?
    3. How to convert the latitude-longitude into address (at least up to city level)? free of charge?
    4. How to convert the address into latitude-longitude? free of charge?

    Thanks in advance.

    解决方案

    There are a few common providers of cell-tower triangulation (or increasingly common, WiFi network triangulation): Skyhook Wireless, Google and Apple.

    You could try to make deals with these companies, or install their custom software on everyone's devices, but that sounds like a lot of work. I think more successful will be to take advantage of some framework abstraction that will work on a lot of devices without your software having to deal with each detail.

    The W3C Geolocation API provides an implementation-agnostic access to a device's current location for modern browsers (on desktop, laptop and mobile) that support it, if your users are using the Web. As you've seen, there are also native platform-specific frameworks (CoreLocation on iPhone and Mac OS X, the Windows 7 Location Platform, Android's LocationManager, etc.).

    As mentioned already, geocoding and reverse-geocoding services can help you with the step for translating between lat-lon coordinates and civic addresses, and vice versa.

    这篇关于如何了解网络用户的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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