The Placekey Python library makes it easy to work with placekey. Detailed documetnation for this package can be found . This package runs on Python 3.
This package can be installed from PyPl by
MacOS Big Sur may need to run the following if the installation of the shapely
dependency fails
The basic functionality of the Placekey library is conversion between Placekeys and latitude-longitude coordinates.
The library also allows for conversion between Placekeys and .
The distance in meters between two Placekeys can be found with the following function.
An upper bound on the maximal distance in meters between two Placekeys based on the length of their shared prefix is provided by placekey.get_prefix_distance_dict()
.
Placekeys found in a dataset can be partially validated by
This package also includes a client for the Placekey API. The methods in the client are automatically rate limited.
The PlacekeyAPI.lookup_placekey
method can be used to lookup the Placekey for a single place.
The PlacekeyAPI.lookup_placekeys
method can be used to lookup Placekeys for multiple places.
Jupyter notebooks demonstrating various Placekey functionality are contained in the repository.
More information about this library can be found on where you can also submit pull requests, submit bugs, and feature suggestions.