Skip to content

DigitalGeographyLab/parking-times-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking times in the Helsinki metropolitan area

This is a Python package to look up expected average parking times at any given location in the Helsinki metropolitan area, using the values surveyed by Vesanen (2020)

This package is used, for instance, for calculating travel time matrices of the metropolitan area.

Installation

pip install git+https://github.com/DigitalGeographyLab/parking-times-calculator.git

Use

Instantiate a ParkingTimesCalculator() and call its method parking_times(), using a shapely.Point as an argument. The return value (int) is the expected delay arising from finding a parking spot and walking to the destination, in minutes.

>>> from parking_times_calculator import ParkingTimesCalculator
>>> import shapely
>>> p = shapely.Point(60.20, 24.95)
>>> parking_times_calculator = ParkingTimesCalculator()
>>> parking_times_calculator.parking_time(p)
4

You can geopandas.apply() this method to a geometry column:

df["parking_times"] = df["geometry"].apply(parking_times_calculator.parking_time)

About

A Python package to determine expected parking times at a location in the Helsinki metropolitan area, based on Vesanen (2020)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages