Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easiest way to display location?

What is the most up to date, accurate, turn-key code to inject into a page to automatically read a user's IP and spit out their city... on this page we are borrowing from goingtorain.com I want it to display ... within 3 miles of (dynamic city)

http://www.drillavailable.neighborrow.com/

like image 972
adam Avatar asked Dec 06 '10 03:12

adam


People also ask

How do I track someone on Google Maps without them knowing?

To track someone on Google Maps without them knowing is no longer a thing. Google now let the person know they're sharing their location by sending them a notification. Luckily, you can still use mSpy app to track either your husband or wife without their knowledge.


2 Answers

Another one we've been looking at to use is http://www.maxmind.com/app/geolitecity. Looks to be fairly simple to setup and is open source/free with apis for most popular languages.

Not done much other than play with it for 5 mins but looks promising.

like image 57
Ben Neill Avatar answered Sep 21 '22 08:09

Ben Neill


I'd go with location aware browsing. Look into the W3C GeoLocation API.

For example, try Google Gears Geolocation module.

These technologies allow your clients to be geolocalized not only by looking and their IP (which can have 200km offsets) but also by triangulating SSID information from nearby wireless Access Points, and this can be extremely precise.

Once you have the (lon,lat) coordinates, it's just a matter of calling some webservice to get the nearest city's name.

like image 27
Unai Vivi Avatar answered Sep 25 '22 08:09

Unai Vivi