Location from IP, geocoding, distance calculation, and geo/map utilities
MIT License
h1. Geo Magic
This little magic gem attempts to provide a nice DSL for performing Geo functionality. It levearegs some of my other geo- gems.
Geo Magic should mainly be a DSL sugar-coating on top of these geo gems and integrate them all in a nice, convenient way under the cover.
Main features:
h2. Update April 1 2012
Refactoring in progress
h3. Create random points in Radius
From a given radius, you can create random points either in a square or circle radius.
Example use:
h3. Points within an area or distance
Within distance:
The closest n points:
Or using container objects (objects containing a location):
Where @people is an array of Person and @house is an instance of House and where both House and Person has a #location, #to_point or #point method that returns an object with latitude and longitude methods that each return a float.
Within bounding rectangle (see Geo::Shapes in 'geo_shapes' gem) :
h2. Meta magic
You can also include the functionality directly into any class like this
h2. Contributing to geo_magic
h2. Copyright
Copyright (c) 2011 Kristian Mandrup. See LICENSE.txt for further details.