Skip to main content

Generate synthetic timesstamped routes on a graph network.

Project description

movingpeople

movingpeople is a Python package that allows you to generate synthetic data of travel routes in a graph network. It provides a convenient and efficient way to create datasets of travel routes, which are time-stamped based on travel speed. Whether you are working on transportation analysis, urban planning, or simulating human movement patterns, :movingpeople: is a powerful tool to generate realistic and customizable travel data.

Key Features

  • Synthetic Data Generation: With movingpeople, you can generate synthetic travel data by simulating movement on the graph network. The package incorporates various parameters such as travel speed, time intervals, and start/end points to create diverse and customizable travel routes.

  • Timestamped Routes: Each generated travel route is timestamped according to the travel speed. This enables you to analyze temporal aspects of movement, such as traffic patterns, congestion, or time-based simulations.

  • Customizable Parameters: movingpeople provides a range of parameters that can be customized to fit your specific use case. You can control aspects such as the number of routes to generate, the distribution of travel speeds, the duration of routes, and more.

Installation

To install movingpeople, you can use pip, the Python package installer. Open a terminal or command prompt and run the following command:

pip install movingpeople

A quick example

Here's a basic example to get you started with movingpeople:

from movingpeople import visualise_route, generate_routes
import osmnx as ox

# Search query for a geographic area
query = "City of Westminster"
# Get the walking network for the query location
G = ox.graph.graph_from_place(query, network_type="walk", simplify=True)
# Project the graph to WGS84
Gp = ox.project_graph(G, to_crs="4326")

# To make two randomised routes
two_routes = generate_routes(
                            Gp,
                            time_from="2015-02-26 21:42:53",
                            time_until=None,
                            time_strategy="fixed",
                            route_strategy="many-many",
                            origin_destination_coords=None,
                            total_routes=2,
                            walk_speed=1.4,
                            frequency="1s",
                            )

In the example above, we first create a Graph object to define the transportation network. We then generate two routes which have the same start time however randomised origins and destinations.

Conclusion

movingpeople is a versatile Python package for generating synthetic travel route data on graph networks. It offers a range of features and customizable parameters to create realistic and timestamped routes. Whether you are conducting transportation analysis, urban planning, or simulating human movement patterns, :movingpeople: can help you generate valuable datasets for research and analysis. Start using :movingpeople: today and unlock insights into the dynamics of movement in various contexts.

This project is under active development.

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

movingpeople-0.0.11.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

movingpeople-0.0.11-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file movingpeople-0.0.11.tar.gz.

File metadata

  • Download URL: movingpeople-0.0.11.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for movingpeople-0.0.11.tar.gz
Algorithm Hash digest
SHA256 9f968af4a3605877523704409811d1443f27bacb494fc62b70f2137b8da3ce92
MD5 5e2202dd056c4d42c8ecba63a101697f
BLAKE2b-256 adc9324bbca2af76fc3e6e137132b93161404a4975510c392b2af66a06ce1da7

See more details on using hashes here.

File details

Details for the file movingpeople-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: movingpeople-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for movingpeople-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 84e15e0fe79ac5613842a402e73720e0a0763d8ddc3a564bf42e48bdddf78adf
MD5 19d15b5c047d41f893b96998502106b3
BLAKE2b-256 c3423b7d39a8196a3ea7c0be3faac3a54b8f2733151000a3bbbb85a0d2155696

See more details on using hashes here.

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