A Java backend application for efficient routing using Google Maps API.
This service provides optimized route planning with dynamic transportation mode selection, combining Google Maps API for transit routes and OpenTripPlanner for driving directions.
- Multi-modal route planning (transit, walking, driving)
- Smart decision engine to determine when to use taxis vs. public transit
- High-performance caching with Redis
- Asynchronous processing for improved response times
POST /api/routes/calculate- Calculate optimized routes between locationsPOST /api/routes/sorted- Get routes sorted by criteria (duration, cost, etc.)
- Java Spring Boot
- Redis for caching
- OpenTripPlanner for driving routes
- Google Maps Routes API
Configure your API keys, set up Redis and OpenTripPlanner, then build and run:
./mvnw clean package
java -jar target/google-routes-backend.jarThis lightweight service enhances standard Google routing with intelligent transportation mode decisions and performance optimizations.