Skip to content

Traveling Salesman API for University Project: Investigacion Operativa (UTN)

Notifications You must be signed in to change notification settings

jmbs-dev/TravelingSalesman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TravelingSalesman

Traveling Salesman API for University Project: Investigacion Operativa (UTN). This back end project made with Spring Boot solves the traveling salesman algorithm.

Minimal Spring Boot.

Requirements

For building and running the application you need:

Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com/invoperativa/tourisimapi/TourisimApiApplication.java class from your IDE.

Alternatively you can use the Spring Boot Maven plugin like so:

mvn spring-boot:run

API endpoint

This endpoint allows to send a list of supported locations IDs to route.

POST

/bestRoute

Body Example

[7,8,9,10]

Response Example

{
    "locations": [
        "Mar del Plata",
        "Neuquen",
        "San Juan",
        "San Luis",
        "Rosario",
        "Mar del Plata"
    ],
    "totalDistance": 3609
}

Supported Location IDs

ID #0 #1 #2 #3 #4 #5 #6 #7 #8 #9 #10
Name Mar del Plata Carlos Paz Bariloche Mendoza Usuahia Salta Jujuy Neuquen San Luis Rosario San Juan

About

Traveling Salesman API for University Project: Investigacion Operativa (UTN)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages