Skip to main content

Analyze frequent and illegal parking patterns using trajectory and GIS data

Project description

README.md

## ewha-parking

A Python package for analyzing frequent parking and illegal parking using trajectory data and GIS layers.

  • Detects Frequent Parking spots from trajectory data.
  • Identifies Illegal Parking candidates by comparing detected spots against sidewalks, crosswalks, and yellow line buffer zones.

## Installation

After uploading to PyPI: pip install ewha-parking

For local development: pip install -e .

## Usage

import time

import pandas as pd

from ewha_parking.frequent_parking import FrequentParking

from ewha_parking.illegal_parking import IllegalParking

# Load input data

df, road_df

start = time.perf_counter()

# 1. Detect frequent parking spots

frequent_parking = FrequentParking(df.copy(), road_df)

frequent_result = frequent_parking.call()

# 2. Detect illegal parking

illegal_parking = IllegalParking(

  zip_path="illegal_parking.zip", # ZIP archive containing SHP files

  extract_dir="illegal_parking_extracted" # Directory to extract SHP files

)

illegal_result = illegal_parking.call(frequent_result)

end = time.perf_counter()

print(f"Execution time: {end - start:.2f} seconds")

# Example output DataFrame columns:

# ['CCTV_ID', 'time', 'Geometry', 'Leaving_time', 'Traj_ID', 'Duration', 'ufid']

## Requirements

  • Python >= 3.9
  • pandas
  • numpy
  • geopandas
  • shapely (>= 2.0 recommended)

Note: SHP layers are assumed to use EPSG:4326 (WGS84).

If your data uses a different CRS, please convert it before analysis.

## License

MIT License (?)

## Author

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

ewha_parking-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

ewha_parking-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file ewha_parking-0.1.0.tar.gz.

File metadata

  • Download URL: ewha_parking-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ewha_parking-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88e21dbf9fe6a127dabd9c598f032d186fbf96b4ea89197f1a58452c47f40d99
MD5 4e709426f808673a0bd69fa2aa8b4b4c
BLAKE2b-256 57946536603b110bf8cbb4cebccff8d097aa2b686f03da7b207c206188199bb1

See more details on using hashes here.

File details

Details for the file ewha_parking-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ewha_parking-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ewha_parking-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b53179a00a7c9e36c0a5e7cd94921c8dbdc79f18477c6689466bf1df8651b7b6
MD5 08df37fbedfeaf24ab9daeb3daf91c70
BLAKE2b-256 a626c83c225ae7e301a15e6b83b81cfb8dc5410ded91a9b209da045f1587bab6

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