WebResourcesDepot

Posted by | Posted on 13:15

WebResourcesDepot


Geo-Enable Websites With JS: YQL Geo Library

Posted: 12 Mar 2010 12:21 AM PST

Geolocation is one of the most popular subjects for today's web & there are many solutions that help geo-enabling web applications.

YQL Geo Library is an impressive resource for geolocation as it is totally free & JavaScript-based.

It has various powerful features like:

  • detecting the visitor’s location with the W3C geo API and with IP as a fallback
  • find geo location from text
  • find location from lat/lon pair
  • find locations in a certain web document (by URL)
  • get the location for a certain IP number

YQL Geo Library

The library is lightweight (4kb uncompressed) & non-complicated. It just works by calling a function like:

 yqlgeo.get('217.12.14.240',function(o){   alert(o.place.name + ',' + o.place.country.content +         ' (' + o.place.centroid.latitude + ',' +                o.place.centroid.longitude + ')'         ); }); 

will get you the city, country, latitude & longitude of any given IP.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
SSLmatic – Cheap SSL Certificates (from $19.99/year)
Follow WebResourcesDepot At Twitter And Get More Resources!

Tags: ,

Related posts

Comments (0)

Post a Comment