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.
Metadata
Release files for photon-geocoder 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| photon_geocoder-1.0.0.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| photon_geocoder-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / photon_geocoder-1.0.0.tar.gz
| Download URL | photon_geocoder-1.0.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b58902bb510eb9f0b49161c1ac12ee1a90877522cdcd411f87aadba1714fe857
|
|
BLAKE2b-256 checksum How to use checksums |
b272b7fe349ea6fa035509397ec2ea34f0189ed749ae5ee8f8c50c0120e4b97e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / photon_geocoder-1.0.0-py3-none-any.whl
| Download URL | photon_geocoder-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e14879de7ff54f0132f6843cae4fb747e96b13258efae21612b9d0b49423437
|
|
BLAKE2b-256 checksum How to use checksums |
9b5cb8adc24d32387702e469858327595dbd0893d724a35b399ba453ae2e41f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|