ios - Waypoint Optimisation - MapKit / APIs / Traveling Salesman -


many threads on topic, , found answer work - using mapquest api.

but closed.

http://devblog.mapquest.com/2015/05/01/looking-for-a-free-open-appkey-read-this/

i tried google maps api, many keys tried them noting worked - effort simple not using google maps.

i found this, https://github.com/project-osrm/osrm-backend/wiki/server-api

works great - clean , simple doesn't allow set start , end location. best route when passing in list.

there this, http://www.gebweb.net/optimap/ not sure if can access api ?

anyone solved issue ? maybe local sort using items long / lat position , calculate distance between points rather use api ?

using this

        waypoints.sort {             let distancea = newstart.location.distancebetween($0.location)             let distanceb = newstart.location.distancebetween($1.location)             return distancea < distanceb         } 


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -