MCP ExplorerExplorer

Smart Traffic Navigator

@gokborayilmazon 9 months ago
2 MIT
FreeCommunity
AI Systems
This proxy analyzes traffic density, suggests alternative routes, and estimates travel time using Google Maps MCP. 🚗🛣️

Overview

What is Smart Traffic Navigator

The Smart Traffic Navigator Agent is an AI tool designed to analyze real-time traffic density, suggest alternative routes, and estimate travel times using Google Maps MCP.

Use cases

Use cases include optimizing delivery routes for logistics companies, helping commuters find the fastest routes, and assisting travelers in planning their trips based on current traffic conditions.

How to use

To use the Smart Traffic Navigator Agent, clone the repository, install the required dependencies, configure your environment variables, and start the FastAPI server. Then, access the UI in your browser to input your origin and destination cities, and click ‘Find Route’ to analyze the best route.

Key features

Key features include real-time traffic analysis, alternative route suggestions, travel time estimation, and an interactive user interface for easy navigation.

Where to use

The Smart Traffic Navigator Agent can be used in various fields such as transportation planning, logistics, urban planning, and personal travel assistance.

Content

21-Day Agent Series: Day 10 AGENT : Smart Traffic Navigator Agent

Smart Traffic Navigator Agent
This agent is part of the “A New AI Agent Every Day!” Series - Day 10/21 - Smart Traffic Navigator Agent 🚦🚗✨ This AI agent analyzes real-time traffic density, suggests alternative routes, and estimates travel times using GoogleMaps MCP! 🗺️

Installation

Prerequisites

  • Python 3.9 or higher
  • Git
  • Virtual environment (recommended)

Steps

Don’t forget to download nodejs for MCP

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-folder>
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Create a .env file in the root directory and configure it as follows:

    AZURE_OPENAI_ENDPOINT="your_azure_openai_endpoint"
    AZURE_OPENAI_API_VERSION="your_azure_openai_api_version"
    AZURE_OPENAI_API_KEY="your_azure_openai_api_key"
    GOOGLE_MAPS_API_KEY="YOUR_GOOGLE_MAPS_API_KEY"
    

Running the Application

Start the FastAPI server:

uvicorn upsonicai:app --reload

Open the UI in your browser:

http://127.0.0.1:8000/

Use the form to input:

  • Origin City
  • Destination City

Click “Find Route” to analyze the best route, traffic conditions, and alternative paths. Results will be displayed dynamically.

API Documentation

Interactive API docs are available at:

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers