The ultimate address parsing tool. Effortlessly parse and expand postal data with our cutting-edge technology. Simplify your mailing, enhance accuracy, and embrace the future of postal efficiency. Get Postalized—where precision meets convenience.
Postalized is an open source project that provides a simple and efficient way to parse and expand addresses using the power of libpostal
. This project wraps libpostal
functionalities in a Flask-based web API, making it easy to integrate address parsing and expansion into web applications.
Postalized is available as a Docker image on Docker Hub. You can easily pull and run the Postalized service without manually building it.
You can pull the latest version of Postalized from Docker Hub using the following command:
docker pull dublok/postalized:latest
This command retrieves the latest image of Postalized, ensuring you have the most up-to-date version.
After pulling the image, you can run it using:
docker run -p 8080:8080 dublok/postalized
This will start a container running Postalized and bind port 8080 on your host machine to port 8080 in the Docker container, making the API accessible via http://localhost:8080
.
Alternatively, you can build the Docker image manually:
git clone https://github.com/ErcinDedeoglu/Postalized.git
cd Postalized
docker build -t postalized .
To start the application, run:
docker run -p 8080:8080 postalized
The API should now be available at http://localhost:8080
.
Postalized exposes two endpoints: /parse
for parsing addresses and /expand
for expanding addresses.
Send a POST request with a JSON body containing the address:
curl -X POST -H "Content-Type: application/json" -d '{"address":"123 Main St"}' http://localhost:8080/parse
Example response:
[
{
"label": "house_number",
"value": "123"
},
{
"label": "road",
"value": "Main St"
}
]
Send a POST request with a JSON body containing the address:
curl -X POST -H "Content-Type: application/json" -d '{"address":"123 Main Street"}' http://localhost:8080/expand
Example response:
[
"123 main street",
"123 main st"
]
These examples demonstrate successful responses from the API. The parsing endpoint breaks down the input address into its components, and the expansion endpoint provides normalized variations of the input address.
For developing and contributing to Postalized, please follow the steps below:
If you are having issues, please let us know by creating an issue in the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.