Geo-Enable Websites With JS: YQL Geo Library

In: web resources

13 Mar 2010

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


Go to Source

9 Responses to Geo-Enable Websites With JS: YQL Geo Library

Avatar

Chariotmender

March 17th, 2010 at 6:05 am

have you tried google earth ?
or 118118.com ?
or ask.com ?
or type in the town or city name into wykipedia.com ?

Avatar

Michael

March 19th, 2010 at 4:53 am

Sounds like you are trying to look up porn or do something illegal. If you cant figure this out then you should not be looking those things up.

Avatar

Ari

March 19th, 2010 at 9:43 am

Twitter background remains the same for different resolution screens. So you cannot show them different pictures. There fore you have to make sure that your background designs looks fine on their screen. Here are some tips:

1. Keep your important information like logo, what you do and how to contact you etc in the left side in a narrow bar (to be visible in the smallest size screen also).

2. Whatever design you include should fade to a solid color in the right side and the bottom. Use this solid color as your background color. This way, if someones uses very high resolution and his/her monitor has empty space in the right or bottom after your picture, it will merge and still look good.

3. Based on different size resolutions, the information in the middle portion would get fully or partially overshadowed by the Twitter content section. You should include some generic patterns here so that it does not look bad when shown and there is no harm if it gets gets obscured.

Arun

Avatar

BMWSGOD

March 20th, 2010 at 3:09 pm

Many 100%-electric locomotives in the world return current into catenaries for other trains when braking, slowing or running downhill.

During Montreal's ice storm about 10 years ago, a diesel locomotive was used as "portable power plant" to supply a school or community center used as an emergency shelter. They even drove the locomotive off-track on road pavement to bring it closer to the shelter!!!

Avatar

buzz

March 20th, 2010 at 6:22 pm

I think they're the victims of liberal press. they are attacked daily by islamic extremest. they are trying to simply gain back their freedoms and recover from the genocide the Nazis inflicted upon them 3 generations ago. Jews have at last learned who their friends are and that being passive has never, and will never gain them freedom.

So they attack. I personally fully support Israel, the IDF and the brave soldiers who fight daily in the face of Islam.

Avatar

casaGURU's #1 Fan

March 22nd, 2010 at 4:27 pm

yes

Avatar

jon d

March 23rd, 2010 at 10:47 am

the server has to send stuff to your computer it has to know where to send it.

Generally, a server writes every request to a logfile which is just a textfile full of information.

Other people with open connections to you (remember TCP is connection oriented so once you send the first packet the computer has a connection number and basically an IP to send data to associated with it) use netstat on windows systems to view these connections.

Avatar

yUmMyBaBy12

March 28th, 2010 at 6:46 am

just change your twitter password sweetie. that way they won't be able to access your twitter account anymore :)

Avatar

chrlsquincy

June 2nd, 2010 at 6:34 am

SELECT city, count(student_id)
FROM Student
GROUP BY city

Comment Form

About this blog

This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.