Skip to content

This is a Python-based tool that fetches real-time data from the Ohio Department of Transportation (ODOT) API, visualizing traffic cameras and incidents on an interactive map. This tool helps users monitor highway conditions, track incidents, and make informed travel decisions.

License

Notifications You must be signed in to change notification settings

ericmaddox/odot-camera-and-incident-mapper

Repository files navigation

Ohio DOT Camera and Incident Mapper

Python dotenv Folium OHGO API License Issues Last Commit

Description

ODOT Camera and Incident Mapper is a Python script that fetches camera and incident data from the Ohio Department of Transportation (ODOT) API, and visualizes the data on an interactive map using the Folium library. This tool helps monitor highway conditions and visualize traffic incidents in Ohio.

Features

Prerequisites

  • Python 3.x
  • requests library
  • folium library
  • python-dotenv library

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/odot-camera-and-incident-mapper.git
    cd odot-camera-and-incident-mapper
  2. Install the required libraries:

    pip install requests folium python-dotenv
  3. Create a .env file in the root directory and add your ODOT API key:

    OHGO_API_KEY=your_api_key_here

Usage

  1. Run the script:

    python odot_camera_and_incident_mapper.py
  2. The script will fetch camera and incident data, and save the generated map as ohgo_cameras_incidents_map.html.

Script Details

Fetching Data

Plotting Data on Map

  • Cameras are plotted on the map with blue markers.
  • Incidents are plotted on the map with red markers.
  • Detailed information is provided in the popups for each marker.

Files

  • odot_camera_and_incident_mapper.py: Main script file responsible for mapping incidents and camera data.
  • odot_camera_info_cli.py: Separate CLI script for accessing camera data in the terminal.
  • .env: File to store environment variables (not included in version control).
  • ohgo_cameras_incidents_map.html: Generated map file displaying camera locations and incidents.

Contributing

Feel free to submit issues or pull requests if you have suggestions for improvements or new features.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Happy mapping!

About

This is a Python-based tool that fetches real-time data from the Ohio Department of Transportation (ODOT) API, visualizing traffic cameras and incidents on an interactive map. This tool helps users monitor highway conditions, track incidents, and make informed travel decisions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages