Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photon_geocoder-1.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

photon_geocoder-1.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file photon_geocoder-1.0.0.tar.gz.

File metadata

  • Download URL: photon_geocoder-1.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for photon_geocoder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b58902bb510eb9f0b49161c1ac12ee1a90877522cdcd411f87aadba1714fe857
MD5 06ba1f86a07ac9ec9729f4c85b85c25b
BLAKE2b-256 b272b7fe349ea6fa035509397ec2ea34f0189ed749ae5ee8f8c50c0120e4b97e

See more details on using hashes here.

File details

Details for the file photon_geocoder-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for photon_geocoder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e14879de7ff54f0132f6843cae4fb747e96b13258efae21612b9d0b49423437
MD5 8759ea0d550917b49b9a3c1bc584780a
BLAKE2b-256 9b5cb8adc24d32387702e469858327595dbd0893d724a35b399ba453ae2e41f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page