Posts Tagged ‘Twitter’

Reverse Geocoding to woeids

Monday, November 23rd, 2009

With twitter providing trend search base on woeids. I started to look at what geotagging twitter provided for its tweets. I soon noticed that there were only providing long/lats of the user location. It would be useful to have the woeid associated to these long/lats. This is why I implemented a simple service returns geo-informations associated to the long/lats.

The services is located at http://www.geomojo.org/cgi-bin/reversegeocoder.cgi and only take 3 parameter one of which is Optional.

  • long: The longitude of the point you want to reverse geocode.
  • lat  : The latitude of the point you want to reverse geocode.
  • format : Optional parameter used to indicate which format you want to be returned by the service. The supported formats are JSON and XML. XML being the default format provided.

To reverse geocode I use the functionality provided by Placemaker. Placemaker handles micro-formats and the returns the location associated to the long/lats in the micro-format. My services just uses this functionality by wrapping the long/lats given in a micro format and submitting it to Placemaker. At the moment the smallest entity returned by the service are zips.

Here is the output of the service for a given long/lat:

http://www.geomojo.org/cgi-bin/reversegeocoder.cgi?long=-97.470929&lat=37.510042

<place>
<woeid>12787085</woeid>
<name>67026</name>
<type>Zip Code</type>
</place>

Geo-Tagging Tweets

Thursday, September 24th, 2009

I finally finished a mash up using Placemaker to find locations in tweets. The results are then stored to be be queried on via a map or via a simple search box. This will enable to find what people write about specific locations.

There are two pages:

The first page http://www.geomojo.org/cgi-bin/map.cgi which contains a map with tweets makers where clicking on these markers prints the tweets associate to the locations. The markers are clustered using the following hierarchy Country,  State, County, Locality.

map

The second page http://www.geomojo.org/cgi-bin/geotweets.cgi just contains a search box. Provide the location wanted and the tweets for this locations will be display.

geotweets

New GeoMineSweeper functionality.

Tuesday, August 11th, 2009

At last got time to work on this a bit more. It is now possible to send potential location of mine via direct messaging. This will avoid overcrowding your twitter page. You will still receive the response via the usual reply system.

Welcome to this new blog of Geo magic

Thursday, July 16th, 2009

Lets start our first post with something I implemented using PlaceMake, GeoPlanet and Twitter.

I called it GeoMineSweeper. It is a basically a MineSweeper where the minesgeominesweeper are located in places around the world. To play this game you just need to reply to GeoMineSweeper with a location you think a mine might be in. GeoMineSweeper will then reply with information on whether you found a mine or not. If you haven’t found a mine the reply will contain the distance to the closest mine.

Next step for this game is to also accept direct message. Once this has been done I will start playing with the maps api. To give player a way to find mines locations more easily.