Jason Spence wrote an interesting article about Geographic Content and why it isn’t good to write for a specific local audience. I would disagree. In this post, I am going to write about a very specific location: a city – but not just any city, the best city in the world. And I think you might agree with me!
This weekend, I went to visit some old friends in this wonderful city. The city itself was beautiful, the people were extraordinarily nice and the food was great! What city am I talking about? Find out after the jump!
The best city in the world is of course Washington DC! Are you surprised I picked Washington as the best city in the world? Don’t be, its not a coincidence
Advantages include the ability to personalize content for your audience. This post may not be the best example but it gives you a general idea of what you can do. Also, you could use this method to automatically determine the weather without having a user select a city. There is also the added benefit of being able to track your visitors to see where they are from (a lot of software do this already).
I’m sure you can come up with many other creative uses for this! I will write a how-to shortly
P.S. I actually do agree with Jason in that content specifically targeted to a small local group would not be popular with most of your readers!
Popularity: 4% [?]
Tags: geolocation, web development


















Entries (RSS)
That post just put a smile on my face, so I thought I’d throw some smilies on this comment.
Nice use of the tool!
It almost worked for me. Although it didn’t quite get the location just right. I am in a fairly large capital city though so there are lots of variables with telephone exchanges and Internet hubs etc.
It is a cool idea though and I’m sure you’ll get a lot of interest in the plugin.
It didn’t work for me the first time but it did my second visit. Pretty cool!
Yea accuracy isn’t that great. I wish I had the money for the professional database :S
When I saw it the first time, I said what the heck is this?
After reading your other posting, now I know. Good job. Will work on the review when I get some free time.
I must be dumber than a brick, as I can’t seem to get it to work as shown.
You show as the way to display location.
I have tried that and then with all !-’s removed and still nothing.
where oh where did I go wrong?…
Perhaps it is the font that isn’t clear
There should be two hyphens after the exclamation mark and before the closing bracket, just like a proper HTML comment!
Off by half a planet for me… I’m in Tokyo, Japan and it’s showing Toronto, On…
It’s a nice plugin but it must be recoded. I live in Barcelona, Spain, and the plugin has determined I’m from Madrid, although the two cities are very big and famous…
Nice idea after all!
Toronto is the default city if your city can’t be determined
Unfortunately the data is most accurate for North America.. international support is still kind of iffy :S
[...] Jon’s Geolocation Plugin provides a lightweight method to determine a visitor’s location down to a city level based on their IP address. It is a modification of the open source API ported to Wordpress. Demo [...]
Might be better to make “Unknown” or something similar be the default?
i didnt know that the IP can show the location of a person in the internet…
You can change the default to anything you want.
Just open up jons_geolocation.php to edit, all the instructions are there
Groovy
Now if it gets a bit more accurate and you add the ability to display flags and stuff like the Firestats plugin does it will be really nice =)
[...] the proxy is working, you can go to a site that will display your IP address or location. You can try this post to see if it displays the city of your proxy correctly (ineffective if your proxy and your current [...]
Awesome. Any instructions on how to use for web pages and not just Wordpress?
I would suggest looking at the MaxMind API here http://www.maxmind.com/app/api
It gives instructions on implementing their database with different languages including PHP and Javascript
Nice! The plugin now detects I’m in Barcelona… International support it’s better now. And it’s true Barcelona it’s almost the best city in the world. I recommend all people hasn’t been here to visit this incredible city and country…
Well done Jon Lee!
hey, i wanna know hot to translate the commenter’s ip to their city and country. i’ve tried to adding the in the loop of comment.php file of my theme, but still doesn’t work. so, please tell me the way
Hi Jonlee this plugin is the best. However i have a question. Do search engines picking up the place it is generated as content?
Kojak
Hi the plugin is not working anymore.. Can you please kindly update this plugin? I can give you free backlink on my site if you do…
Regards
Up to what version of WP does this work with? How difficult would it be to adapt the plugin to be used not for displaying the location, but rather using the location to determine what content is displayed? We operate a studio that serves two parts of the US. I want our midwest clients (Chicago, Milwaukee, Minneapolis) to be able to see content that is relevant to them, while the west coast clients (San Fran, San Jose) (and others abroad) see the primary content. It would seem like a relatively easy adaptation.