Skip to main content

pyplaces is a Python package meant to streamline the usage of large places datasets, notably Overture Maps and Foursquare Open Places. All of the datasets and past releases can be downloaded to a specific address, place or bounding box. Conventionally, users download the data themselves or use a tool such as DuckDB to download what they need, whereas pyplaces is more integrated, faster, and more precise.

Project description

pyplaces

pyplaces is still in development, so if you run into any bugs please report them here

pyplaces is a Python package meant to streamline the usage of large places datasets, notably Overture Maps and Foursquare Open Places. All of the datasets and past releases can be downloaded to a specific address, place or bounding box. Conventionally, users download the data themselves or use a tool such as DuckDB to download what they need, whereas pyplaces is more integrated, faster, and more precise.

Quickstart

Installation

This package is available on PyPI as well as conda-forge:

pip install pyplaces

conda install pyplaces

I recommend that you use Anaconda for your Python environments. (I use miniforge and mamba)

Basic Usage

To access any places, all you need is a place, address, or bounding box:

from pyplaces.foursquare_open_places import foursquare_places_from_address

hemenway_st_places = foursquare_places_from_address("204 Hemenway Street, Boston, MA")

Additionally, you can:

  • Select columns
  • Filter on columns using the (column,operator,value) syntax (see support for this syntax here)
  • Get data from past releases(see support for this here)

Most, if not all, of the functions follow the same type of workflow.

Documentation

The documentation is available here in case you run into any issues.

License

pyplaces is open source and licensed under the MIT license.

pyplaces Usage

This package uses a geocoder that uses OpenStreetMaps's geocoding service Nominatim. Please abide by their usage policy here.

Future Support

  • matching for foursquare categories table(to easily retrive types of POIs)

  • get schemas for each theme/dataset

  • support more geoparquet datasets

  • basic network analysis for transportation data

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

pyplaces-0.3.0.tar.gz (360.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyplaces-0.3.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file pyplaces-0.3.0.tar.gz.

File metadata

  • Download URL: pyplaces-0.3.0.tar.gz
  • Upload date:
  • Size: 360.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyplaces-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9f2df6295fea076925bf1782046ae46ee93938f5ca0b341426f06a5a27ffdb76
MD5 d658d5c8f1e61cdc2ec24cfd4eba3caf
BLAKE2b-256 2fcfddba010e0a245096b1d05094fce589801b9ad5b4c1cec3a8b815f4cbb8a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyplaces-0.3.0.tar.gz:

Publisher: pypi-publish.yml on tbanken/pyplaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyplaces-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyplaces-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyplaces-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c900fff24b8cac4fa2ee33b67e51acf792f073eaa23c1bbe09b40cc84921aa
MD5 2282274d4e3683c86b691ba93df74d65
BLAKE2b-256 29f8114db91bc5e2af499b31af451e8c056939812ac85471aa096ad90bceacc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyplaces-0.3.0-py3-none-any.whl:

Publisher: pypi-publish.yml on tbanken/pyplaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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