Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Dummy Address Data (DAD) - Real addresses from all around the world.

License

NotificationsYou must be signed in to change notification settings

Justintime50/dad

Repository files navigation

Dummy Address Data (DAD) - Real addresses from all around the world.

Build StatusVersionLicence

Showcase

DAD is the perfect companion to quickly bootstrap address data in your application. DAD provides real addresses from all over the world with a consistent data structure so you can spend less time looking up addresses and address rules and more time coding.

Install

Submodule (Recommended)

# Add the submodule to your projectgit submodule add https://github.com/Justintime50/dad.git# If DAD is already added and you need to initialize the submodule, run the followinggit submodule init&& git submodule update

Cloning

git clone https://github.com/Justintime50/dad.git

Manual Download

You can also find the data sets from thereleases page.

Address Data

Address objects will look like thesample below. The data type of each field on an address object is astring. A list of addresses is anarray ofjson objects.

Attempts have been made to verify addresses and ensure that street1, city, state, and zip are present on all records. Some lists may be shorter than others to avoid complexity or because of a lack of accurate data.

The following files can be found in thesrc/addresses directory.

Australia

FilenameLocationsAddress Count
australia/vt-addresses.jsonVictoria Area5

Canada

FilenameLocationsAddress Count
canada/bc-addresses.jsonBC Area5

China

FilenameLocationsAddress Count
china/bj-addresses.jsonBeijing Area5
china/hk-addresses.jsonHong Kong - Wan Chai Area5

Europe

FilenameLocationsAddress Count
europe/de-addresses.jsonGermany - Wesel Area5
europe/es-addresses.jsonSpain - Countrywide5
europe/fr-addresses.jsonFrance - Paris Area5
europe/uk-addresses.jsonUnited Kingdom - England Area5

Mexico

FilenameLocationsAddress Count
mexico/mx-addresses.jsonMexico - Mexico City Area5

United States

FilenameLocationsAddress Count
united-states/az-addresses.jsonArizona - Gilbert Area100
united-states/ca-addresses.jsonCalifornia - Anaheim Area100
united-states/id-addresses.jsonIdaho - Boise Area100
united-states/ks-addresses.jsonKansas - Barton County100
united-states/nv-addresses.jsonNevada - Lincoln Area100
united-states/ny-addresses.jsonNew York - Rochester Area100
united-states/or-addresses.jsonOregon - Portland Area100
united-states/tx-addresses.jsonTexas - Austin Area100
united-states/ut-addresses.jsonUtah - Provo Area100
united-states/wa-addresses.jsonWashington - Spokane Area100

Sample Address Object

A sample address object will look like the following:

{"street1":"231 N 1200 W","street2":"UNIT 104","city":"OREM","state":"UT","zip":"84057","country":"US"}

Sample ISO Country Object

{"country":"United States of America","alpha_2_code":"US","alpha_3_code":"USA"}

Development

# Lint the projectnpm run lint# Run testsnpm runtest

Utilities

Create Slim List

To create the slim lists from a larger dataset, use thecreateSlimJson.js tool in theutils folder. See the script for additional information. This tool will grab 100 random addresses (by default) from a larger JSON dataset and create a new slim file that can be added to DAD.

DATA_SET=path/to/dataset.json STATE=UT COUNTRY=US node utils/createSlimJson.js

Beautify and Minify Lists

Additional tooling is provided for convenience when adding new data sets that allow you to beautify a JSON list or minify it.

INPUT_FILE=path/to/input.json OUTPUT_FILE=path/to/output.json node utils/minifyJson.js

Contributing

This data is very laborious to build - any contributions are welcome! Open a PR or issue with additions or fixes.

Lists of addresses must contain at least 5 addresses and not exceed 100 records. Both the beautified and minified lists must be present. Addresses that are not a part of the OpenAddress Project must be publicly well-known addresses (government buildings, hospitals, museums, landmarks, etc). All keys of an address record must be present and all of their values must be strings. The current test suite should enforce these standards.

Disclaimer

As these addresses are public knowledge and open sourced, I take no responsibility for their use. If you'd like an address removed from the list, submit an issue.

Attribution

  • Many of the addresses are provided from theOpenAddress Project, others are publicly well-known landmarks.
  • DAD is conceptually based onRRAD.

About

Dummy Address Data (DAD) - Real addresses from all around the world.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp