Geo-Enable Websites With JS: YQL Geo Library
// March 12th, 2010 // No Comments » // Website Resources
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
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!



















