MarketGeocoder (Ruby)
Company Profile

Geocoder (Ruby)

Geocoder (Ruby) is a geocoding library for Ruby. Geocoding helps to enhance webpages by presenting location relevant information to the user. When used with Rails, Geocoder adds geocoding functionality such as finding coordinates with street addresses or vice versa in addition to distance calculations for ActiveRecord objects. Since the functionality does not rely on proprietary database functions, finding different geocoded objects in an area works out-of-the-box for databases like MySQL, PostgreSQL and SQLite.

Compatibility
Geocoder has been fully tested with Ruby 1.8.7, 1.9.2, and JRuby 1.5.3. Geocoder is compatible with Rails 3, but there is only limited functionality with Rails 2. == Installation ==
Installation
The Prerequisites to installing Geocoder are Ruby and RubyGems. Geocoder gem can be installed with the following command: gem install geocoder Or, if you're using Bundler for Rails, you may add this to your Gemfile: bundle install It can be used as a plugin with rails too: rails plugin install git://github.com/alexreisner/geocoder.git == Configuration ==
Configuration
In order to use Geocoder with objects, the project must be set up as follows: Required attributes ActiveRecord In order to use Geocoding with ActiveRecord objects, they must have two additional attributes, latitude and longitude coordinates. • Yahoo: • Geocoder.ca: (US & Canada only) == Examples ==
Examples
Here are some examples to demonstrate Geocoder functionality: Hotel.near("Raleigh, North Carolina") Finds hotels near Raleigh. @restaurant.distance_to("Empire State Building") Finds the distance from @restaurant to the Empire State Building. == Applications ==
Applications
• Developers may also use Geocoder to convert a user's IP address to their city location. By making such a conversion you may be able to offer user's content relevant to their current location without requiring to ask for it beforehand. • It may be used for geospatial analysis in order to recognize patterns within the information. This is very useful in data mining applications. • Web-based GIS tools such as Google Maps, Yahoo Maps etc. include geocoding functionality. == References ==
tickerdossier.comtickerdossier.substack.com