Skip to content
Snippets Groups Projects
README.rst 979 B
Newer Older
======================================================================
Optimization of the Traveling-Salesman Problem based on a RESTlike API
======================================================================
Florent Aide's avatar
Florent Aide committed

This module allows you to find the best route given a set of points defined by their longitude & latitude. 

The cost criteria
Florent Aide's avatar
Florent Aide committed
Only one criterion at the moment: the distance between the requested points
Other cost criteria could be considered in future version

Florent Aide's avatar
Florent Aide committed

* cornice (1.0.0)
* waitress (0.8.9)
* python-gflags
* ortools
* gpsdistance (for testings only)
Florent Aide's avatar
Florent Aide committed

Florent Aide's avatar
Florent Aide committed

 $ python pserve.py development.ini --reload
Florent Aide's avatar
Florent Aide committed

Components
==========

The **REST API** lives in *views.py*.

Clients contact the tsp via REST/Json requests, on the three main views:

* / (POST for obtaining the route given a set of pairs of (latitude, longitude) coordinates)
* /credentials (POST for creating a new user - token -)
* /credentials (DELETE for removing a user)