Giter Club home page Giter Club logo

nngc-route-optimization's Introduction

NNGC-Route-Optimization

NNGC Route Optimization Spring Boot Rest API

End Point

http://localhost:8080/route/

Method: POST

Request Body

{
    "startTime":"1683970081",
    "optimizationType":"end anywhere",
    "startLocation":{
        "longitude":-74.08,
        "latitude":40.75
    },
    "routeLocations":[
        {
            "longitude":-82.94,
            "latitude":40.42
        },
        {
            "longitude":-89.47,
            "latitude":40.67
        },
        {
            "longitude":-84.17,
            "latitude":39.81
        }
    ]
}

Example Request using cURL

curl --location 'http://localhost:8080/route' --header 'Content-Type: application/json' --data '{
    "startTime":"1683970081",
    "optimizationType":"end anywhere",
    "startLocation":{
        "longitude":-74.08,
        "latitude":40.75
    },
    "routeLocations":[
        {
            "longitude":-82.94,
            "latitude":40.42
        },
        {
            "longitude":-89.47,
            "latitude":40.67
        },
        {
            "longitude":-84.17,
            "latitude":39.81
        }
    ]
}'

Example Response

{
    "startingTime":"1683970081",
    "destinationArrivalTime":"1684074652",
    "totalStops":4,
    "totalDuration":"104571",
    "routeDistance":"3005613",
    "routeType":"end anywhere",
    "routeList":[
        {
            "startLocation":{
                "longitude":-74.08,
                "latitude":40.75
            },
            "startLocationName":"QW2C+22R Kearny, NJ, USA",
            "endLocation":{
                "longitude":-82.94,
                "latitude":40.42
            },
            "endLocationName":"C3C6+222 Ashley, OH, USA",
            "projectedStartTime":"1683970081",
            "projectedArrivalTime":"1683999676",
            "projectedDepartureTime":"1683999976"
        },
        {
            "startLocation":{
                "longitude":-82.94,
                "latitude":40.42
            },
            "startLocationName":"C3C6+222 Ashley, OH, USA",
            "endLocation":{
                "longitude":-84.17,
                "latitude":39.81
            },
            "endLocationName":"RR6H+2X5 Dayton, OH, USA",
            "projectedStartTime":"1683999976",
            "projectedArrivalTime":"1684006075",
            "projectedDepartureTime":"1684006375"
        },
        {
            "startLocation":{
                "longitude":-84.17,
                "latitude":39.81
            },
            "startLocationName":"RR6H+2X5 Dayton, OH, USA",
            "endLocation":{
                "longitude":-89.47,
                "latitude":40.67
            },
            "endLocationName":"MGCJ+222 Washington, IL, USA",
            "projectedStartTime":"1684006375",
            "projectedArrivalTime":"1684024236",
            "projectedDepartureTime":"1684024536"
        },
        {
            "startLocation":{
                "longitude":-89.47,
                "latitude":40.67
            },
            "startLocationName":"MGCJ+222 Washington, IL, USA",
            "endLocation":{
                "longitude":-74.08,
                "latitude":40.75
            },
            "endLocationName":"QW2C+22R Kearny, NJ, USA",
            "projectedStartTime":"1684024536",
            "projectedArrivalTime":"1684074352",
            "projectedDepartureTime":"1684074652"
        }
    ]
}

nngc-route-optimization's People

Contributors

havannaa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.