No commit activity in last 3 years
No release in over 3 years
A collection of addresses taken from the U.S. Government's open data. Meant to be used as seed data for development and testing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0
 Project Readme

Open Data Addresses

This is a generator for real addresses, meant to be used for developing and testing applications that require them, such as geocoding. Data is taken from various U.S. government open data websites, more information here.

Data sets used:

San Francisco: Registered Business Locations
New York City: Legally Operating Businesses Los Angeles: Listing of Active Businesses

Installation

Add this line to your application's Gemfile:

gem 'open_data_addresses'

And then execute:

$ bundle

Or install it yourself as:

$ gem install open_data_addresses

Usage

# 3 region are currently supported:
#   'SF'  => San Francisco (default)
#   'NYC' => New York City
#   'LA'  => Greater Los Angeles Area

OpenDataAddresses.address('SF') #=> { street: '1955 Leavenworth St', city: 'San Francisco', state: 'CA', zip: '94133' }

# Defaults to 10 addresses
# Addresses are guaranteed to be unique
OpenDataAddresses.addresses(2, 'SF') #=> [{ street: '1455 Market St', city: 'San Francisco', state: 'CA', zip: '94103' }, { street: '840 Post St', city: 'San Francisco', state: 'CA', zip: '94109' }]

License

The gem is available as open source under the terms of the MIT License.