addejans / ev-routing

2 stars 0 forks source link

Initial Implementation of Basic Routing Service API #3

Closed addejans closed 1 week ago

addejans commented 1 week ago

Summary:

This PR introduces a basic Flask API that provides a simple routing service. The API is capable of receiving start, end, and car location coordinates as query parameters, performing basic transformations on the coordinates, and returning them as part of a JSON response. The main route implemented is /route.

Key Changes:

How It Works:

Example Usage:

GET Request:

GET /route?start=12.34,56.78&end=34.56,78.90&car=45.67,89.01

Response:

{
  "start": [22.34, 66.78],
  "end": [44.56, 88.9],
  "car_location": [55.67, 99.01]
}

Testing the API:

Notes: