A Python wrapper for the Photon geocoder
Project description
Photon Geocoder
Overview
Photon Geocoder is a Python library designed to provide efficient and easy-to-use geocoding capabilities using OpenStreetMap data. It offers a robust solution for translating addresses into geographic coordinates and vice versa.
Features
- Leverage OpenStreetMap data for accurate geocoding.
- Support for various geocoding queries, including address, city, and postal code lookups.
- Ability to filter results by specific OpenStreetMap tags.
- Asynchronous API for efficient network operations.
Installation
To install Photon Geocoder, run the following command:
pip install photon-geocoder
Usage
Here's a quick example of how to use Photon Geocoder:
from photon_geocoder import PhotonGeocoder
# Create a geocoder instance
geocoder = PhotonGeocoder()
# Geocode an address
addresses = await geocoder.query("Brandenburg Gate, Berlin")
print(addresses)
API Reference
The main class in Photon Geocoder is PhotonGeocoder
. It provides the following methods:
query(address, layers=None, osm_tags=None, limit=10)
: Performs a geocoding query.
Contributing
Contributions to Photon Geocoder are welcome! Please read our contribution guidelines for more information on how to contribute.
License
Photon Geocoder is licensed under the MIT License.
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
Hashes for photon_geocoder-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e14879de7ff54f0132f6843cae4fb747e96b13258efae21612b9d0b49423437 |
|
MD5 | 8759ea0d550917b49b9a3c1bc584780a |
|
BLAKE2b-256 | 9b5cb8adc24d32387702e469858327595dbd0893d724a35b399ba453ae2e41f0 |