Translate raw address strings into the OSM tagging scheme.
Project description
Atlus
This Python project translates raw address strings into the OpenStreetMap (OSM) tagging scheme. The package only supports US (and to some extent Canadian) addresses. You can try out the package without installing it at the Atlus website.
[!NOTE] Use of this package does not absolve you from following OSM's import guidelines.
Table of Contents
Features
- Expand common street and name abbreviations.
- Parse address parts correctly and reliably.
- Get rid of address junk that is not needed for OpenStreetMap tagging.
- Parse US and Canadian phone numbers into the standard format.
Usage
This package is meant to work with GeoJSON files containing raw address data, including those produced by the All the Places project or Overture maps.
pip install atlus
>>> import atlus
>>> atlus.abbrs("St. Francis")
"Saint Francis"
>>> atlus.get_address("789 Oak Dr, Smallville California, 98765")
{"addr:housenumber": "789", "addr:street": "Oak Drive", "addr:city": "Smallville", "addr:state": "CA", "addr:postcode": "98765"}
>>> atlus.get_phone("(202) 900-9019")
"+1 202-900-9019"
Docs
The documentation for our package is available online at our documentation page. We would greatly appreciate your contributions to help improve the auto-generated docs; please submit any updates or corrections via pull requests.
License
This project is licensed under the MIT License. See the LICENSE file for details.
See also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file atlus-0.2.2.tar.gz
.
File metadata
- Download URL: atlus-0.2.2.tar.gz
- Upload date:
- Size: 188.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba94f89929d0e6e05b41c289d1357ae177eeefe7500e86369b9eb903a17f719f |
|
MD5 | 672bdabee770b0281d2b3ad48568ec7c |
|
BLAKE2b-256 | ec8b00fedb08510a57cf11ef9ea1b6ba27dcddf0eae2f16c9359e4e4a45d6030 |
File details
Details for the file atlus-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: atlus-0.2.2-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c6e1234487b00b1654af7ac31be6e14404564b19c0d0863ffbe989a051fae1 |
|
MD5 | aa7a9d78a5c35c7003a9d96ad8a07e45 |
|
BLAKE2b-256 | 2d4179fdd92c19b0300ada3f1079267b5d03a9ec20bdd89ccb59441f421d95c8 |