getting started with sinatra and postgres web service

I'm in the process of resurrecting some of my past projects. One of themĀ is a web service that provided details for a given zip code. For example, you could lookup the zip code '15213' and the web service would spit out the geographical center for the zip code (i.e., the latitude and longitude coordinates), as well as the city and state for that zip. I originally programmed the web service using Ruby on Rails, but using RoR for a relatively simple API is a bit overkill. So I decided to use this project…Read more …

geoclue2 python example

Next step was to get libchamplain working so that the location data can be shown on a map. That turned out to be pretty easy. I found the easiest way was to do a git clone of their current repository. Doing that also meant that I could look at some of the example code, especially the python bindings they have with that library. git clone git://git.gnome.org/libchamplain ./autogen.sh ./configure make sudo make install I found launcher-gtk.py particularly helpful in understanding how the map drawing works. If you prefer to just install the binaries, then…Read more …

building geocode2 from source

So I've officially given up on figuring out how to get the right libraries installed for GTG so that I can test out its geolocalization features. But, if you've seen my previous posts, you know it's been a painful process since I just can't seem to get the right libraries installed to get things working. But I'm going to go out on a limb and guess that this might not be entirely my fault because, from what I can tell, it seems like this particular feature is a rather old project? So maybe…Read more …