|
|
London Ruby User Group:Using Geokit in Social Apps
Using Geokit in Social Apps
Geokit is a RubyGem and Rails plugin with a wrapper interface to various geocoding providers and supports geocoding addresses, latitude/longitude coordinates and IP addresses. Amongst several other things, Geokit also calculates distances between two points and the mid-point between them. It consists of the mappable, inflector and geocoders modules. The steps for geocoding an address consists of installing the gem, opening an irb session, requiring the gem and geokit and entering an address to geocode.
The latitude and longitude data is returned along with the city. This data is put into Google's geocoder and reverse geocoding is done for the lat/lng point. One can also geocode an IP address. The Rails plugin can automatically geocode new ActiveRecord records upon creation, or an IP address in the controller and store the result in the session. The gem allows distance calculation between two points in miles, kilometers and even nautical miles, as well as enabling heading calculation between two points in degrees. The Rails plugin does have certain limitations, such as its incompatibility with SQLite and below V 8.1 of PostgreSQL. However, it is supported on Ruby 1.9. Alternatives to Geokit include Graticule, YM4R and the defunct Geocoder.
ABOUT PAUL JENSEN
|
Paul is a developer at Axisto Media. He previously worked at New Bamboo and AOL, and is a core contributor to the SocketStream web framework.
More about Paul Jensen
|
ABOUT THE LONDON RUBY USER GROUP
|
LRUG is the London Ruby User Group; a community of ruby developers based in and around London. We meet up at least once a month; on the 2nd Wednesday of the month we have meetings with talks, demos and such-like and then we have pub-based meetups organised on an ad-hoc basis (roughly half-way between meetings).
More about the London Ruby User Group
|
|
PODCAST USING GEOKIT IN SOCIAL APPS
This session took part at the LRUG April. You can view the other 2 podcasts here.
|
JAVASCRIPT & HTML5 COURSES
|
JAVASCRIPT & HTML5 PODCASTS
|
OTHER JAVASCRIPT & HTML5 EVENTS
|
TypeScript
FREE EVENT:
In The Brain of Luke Hoban
London, Monday, May 20th
|
|
London Ajax User Group
FREE EVENT:
Teststack, Dojo 2, and More
London, Wednesday, May 22nd
|
|
Backbone.js London
FREE EVENT:
Introduction to Backbone Mario
London, Thursday, June 6th
|
|
Richard Clark's HTML5 Mobile Mastery
3 DAY COURSE. Featuring Richard Clark London, Monday, June 17th
|
|
Building mobile services that scale
FREE EVENT:
In The Brain of Richard Clark
London, Tuesday, June 18th
|
|
Damjan Vujnovic's Advanced JavaScript Workshop
3 DAY COURSE. Featuring Damjan Vujnovic London, Wednesday, June 26th
|
|
Russel Winder's Python Workshop
4 DAY COURSE. Featuring Russel Winder London, Monday, July 1st
|
|
Damjan Vujnovic's Advanced JavaScript Workshop
3 DAY COURSE. Featuring Damjan Vujnovic London, Wednesday, August 21st
|
|
|
|
|
© Copyright 2003-2013, Skills Matter Ltd
|
|
|