Using the phl_geocode Ruby Gem
I recently released phl_geocode, a simple Ruby gem which gets latitude and longitude coordinates for a Philadelphia address.
Getting Started
Install
phl_geocode
:gem install phl_geocode
Require
phl_geocode
:require "phl_geocode"
Instantiate a
PHLGeocode
instance:phl = PHLGeocode.new
Get latitude/longitude coordinates for a Philadelphia address:
phl.get_coordinates "1500 market street"
Example response:
[{
:address => "1500 MARKET ST",
:similarity => 100,
:latitude => 39.9521740263203,
:longitude => -75.1661518986459
}, {
:address => "1500S MARKET ST",
:similarity => 99,
:latitude => 39.9521740263203,
:longitude => -75.1661518986459
}]