Tags:
geolocation1Add my vote for this tag create new tag
, view all tags

Adding Geolocation to TWiki

2010-01-24 - 05:52:37 by PeterThoeny in Applications
What is TWiki?
A leading open source enterprise wiki and web application platform used by 50,000 small businesses, many Fortune 500 companies, and millions of people.
MOVED TO... Learn more.
TWiki is continuing its path of innovation: TWiki has now plugin for geolocation. Geolocation is the identification of the real-world geographic location of an Internet-connected computer, mobile device, website visitor or other. IP address geolocation data can include information such as country, region, city, postal/zip code, latitude, longitude and timezone.Ref. Wikipedia

The recently released GeoLookupPlugin can be used to retrieve geolocation by IP address or domain name. This includes latitude/longitude, city, region, country name and code, postal code, metropolitan code and telephone area code. The plugin uses free geolocation data provided by MaxMind. It seems to be reasonable accurate for the USA, but I have found it quite unusable for Europe and other parts of the world. They offer a subscription for more accurate data.

What can you do with geolocation? MaxMind mentions fraud detection, ad serving, traffic analytics, content customization and proxy detection. What can you do with geolocation in TWiki? Several things come to mind:

1. Where are people who register in TWiki?

As a TWiki administrator, you can get location information of people registering in TWiki. In twiki/templates/registernotifyadmin.tmpl write this:

%WIKINAME% has been registered with %EMAILADDRESS%, %REMOTE_ADDR%, %GEOLOOKUP{%REMOTE_ADDR%}%

2. Where am I connecting to the internet?

You can show visitors where their ISP connects to the internet. For example, write this:

http://maps.google.com/maps?z=12&ll=%ENCODE{%GEOLOOKUP{"%REMOTE_ADDR%" format="$latitude,$longitude"}%}%
to get this link: http://maps.google.com/maps?z=12&ll=37.4192%2c-122.0574

3. Interactive Google map showing geolocation by IP address or domain name

Geolocation by IP Address or Domain Name
Enter IP address or domain name:


• City: Mountain View
• Region: CA
• Country: USA
• Postal code: 94043
• Telephone area code: 650
• Longitude: -122.0574
• Latitude: 37.4192

Note:
Geolocation data seems to be
accurate only for North America

View Larger Map

Would you like to show this interactive map on your own TWiki? Install the GeoLookupPlugin, copy the raw text into the clipboard, and paste it in raw edit mode into your TWiki page.

There are other usage scenarios for geolocation in TWiki. I am interested in learning what you come up with. Ideas? Please add a comment to share them with the TWiki community.

Comments

I added a new blog post Free Geolocation Lookup - Where is This Website or IP Address?. It contains an advanced geolocation lookup form for multiple IP addresses. The blog post also explains in detail how this works using SpreadSheetPlugin formulas, which is a good learning opportunity for advanced TWiki application programming.

-- Peter Thoeny - 2012-08-14

.

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-05-28 - PeterThoeny
 

Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Help
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.