|
|
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.
|
PODCAST USING GEOKIT IN SOCIAL APPS
|
|
|
|
OTHER RIA, AJAX & WEB EVENTS
|
Dojo Connect
CONFERENCE (3 DAYS)
Online, Wednesday, February 10th
BOOK NOW!
|
|
London Ruby User Group
FREE EVENT:
Lightning Talk Evening
London, Wednesday, February 10th
|
|
London Geek Nights
FREE EVENT:
Hydras and Hypermedia
London, Thursday, February 11th
|
|
Adobe RIA User Group
FREE EVENT:
Spring Integration
London, Wednesday, February 17th
|
|
JAX London 2010
CONFERENCE (3 DAYS)
London, Monday, February 22nd
BOOK NOW!
|
|
HTML5 Communication: Using Web Sockets and more to
3 DAY COURSE. Featuring Peter Lubbers London, Wednesday, February 24th
|
|
HTML5 Communication: Using Web Sockets and more to
3 DAY COURSE. Featuring Peter Lubbers Paris, Monday, March 1st
|
|
Dojo Workshop
1 DAY COURSE. Featuring Sam Foster London, Friday, March 5th
|
|
|
|