Simple Traffic Pattern Analyzer ๐Ÿš˜

An application for simple traffic pattern analysis, which also serves as an MCP.

Running on HuggingFace Spaces. Built with Gradio. Using Google Maps API for traffic data. This project is released under the MIT License.

How to use

  1. Get ready for API key (optional; but please be mindful of rate limits)
    • Demo Mode (rate limited): Leave API key blank -- 50 requests/hour.
    • Your API Key (rate less limited): Enter your own key. Google may offer some free credits. In particular, you need to enable: Directions API; Geocoding API ; Maps Static API. Your API key is used for the query and not stored.
    • When Demo API quota is exhausted, then this would be only work with your own API key.
  2. Enter origin, destination, date, time range, and interval.
    • Origin/Destination: Any addresses or landmarks. Analysis will output their detailed addresses and geographic coordinates.
    • Date: When are you planning to drive?
    • Time Range: Departure time range to analyze.
    • Interval: Time interval between data points (i.e., queried time's interval).
  3. Click "Analyze Traffic!"
    • View results on the "Traffic Pattern" plot and "Analysis Results".
    • If you want more informative analysis, try using this app as an MCP! The MCP setup details can be found on MCP_SETUP.md in the Files tab.

API Key (Optional) ๐Ÿ”‘

Route Settings ๐Ÿ“

Time Range (based on Timezone; HH:MM) โฐ

Interval (minutes)

Results