views:

37

answers:

4

Hi,

google map, ip location etc etc working good.

but none of service pointing our computer exactly where we are in map

anyone know any api which locate our computer on map without user inputs.

or any api service there . since im tired of ip location its not at all exact pointing some where in the earth and ma client scolding a lot :(

Thanxs Gobi

+1  A: 

This cant be done unless you have some GPS device connected to the computer. But I guess it is forbidden in the licence to use real time tracking in Google Maps, but I might be wrong.

Vafello
Google Maps API mashups can use real-time sensors (like GPS, but geolocation can be done using other technologies as well), in fact, you're required to specify whether or not you're using a real-time sensor in one of the parameters.http://code.google.com/apis/maps/documentation/javascript/basics.html#SpecifyingSensor
npdoty
+2  A: 

What you're trying to do is not possible without specialized hardware. Google maps on cell phones without GPS uses cell tower station information. Most other phones use actual GPS receivers. With neither of those, the only way for your network-attached computer to tell where it is is by looking at who owns its IP address, which is what the IP location stuff does. Unfortunately, that database has pretty low geographical resolution. If you really want accurate and precise location information, you have to have a GPS receiver.

Nathon
but how comes the map work perfectly buddy :)
Gobi
+1  A: 

There's one more way, but I don't know how practical it is: visible wifi networks. If your PC has wifi hardware then you can often correlate the list of networks that you can see to an approximate location based on databases of networks and position. This is how e.g. iPod touches can locate themselves, and iPhones when there's poor GPS reception in built-up areas.

But even if your end-user has wifi hardware and you can somehow read the network list from it then I'm not sure if there are public datasets for this though.

Rup
Skyhook is a company that provides this service. i think its the one google uses.
Dave Turvey
Neat http://www.skyhookwireless.com/ I'd assumed Google used their own, since they've recently gotten into trouble for collecting wireless signals from their Streetview cars.
Rup
+1  A: 

The W3C Geolocation API allows websites to request the user's best available location from the browser. In some cases this will use IP geolocation which you've already seen to be inaccurate, but it can sometimes do better.

The API is agnostic to the device and the method used to obtain location; on an iPhone, the Geolocation API may use cell tower triangulation, available WiFi network lookup or GPS satellite geolocation, or some combination. On Firefox or Chrome on the laptop, Google uses WiFi networks and IP address to give a location which is often much, much better than IP geolocation alone.

If you had a GPS attached to your computer, it's possible that your browser could take advantage of that too -- it's expected that future versions of Internet Explorer will support the W3C Geolocation API using the Windows 7 Location Platform, which can accept location from an attached GPS or manual entry or some other plugin.

npdoty
well thanxs for your comments but i jus tired of IP geolocation even ma computer is located some where wrongly so how it possible to implement in ma project its fully related to location based service and i cant go with w3c api since most of the end user still stick with IE so i hope google/yahoo will find a new solution for this :)
Gobi