如何了解网络用户的位置? [英] How to learn location of the web user?
问题描述
我们已经开始开发位置感知应急服务应用程序。用户可以通过计算机,智能手机甚至通过WAP连接。
我们面临的问题是,我们不知道如何获取用户的位置正在寻求服务。如果它是支持GPS的智能手机,它可以通过应用程序找到。我已经看到谷歌地图在GPS无线智能手机(如诺基亚E系列)中使用BTS塔的位置定位手机。但是,我无法在诺基亚网站上找到任何可用于获取该位置或BTS塔式定位服务的API。
而电脑的主要问题依然存在。如果我能找到计算机的城市就足够了。我在几个网站(例如ip2location.com)中看到了将IP地址定位到城市级别(有时甚至更多)。如果我总结我的问题 -
如果我总结我的问题 -
如前所述,地理编码和反向地理编码服务可以帮助您在经纬度坐标和城市地址之间进行转换,反之亦然。
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-
- How to get BTS tower based location service for cell phones?
- How to locate user's IP address upto at least city level ?
- How to convert the latitude-longitude into address (at least up to city level)? free of charge?
- 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屋!