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

  1. Install phl_geocode:

    gem install phl_geocode
    
  2. Require phl_geocode:

    require "phl_geocode"
    
  3. Instantiate a PHLGeocode instance:

    phl = PHLGeocode.new
    
  4. 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
}]