I track locations and their connections to other locations.
I save places in NSArray, while each place is represented as a dictionary. Each place has a dictionary with attributes (locationName, Connections, latitude, longitude), where Connections is an array of other places where TO (not from) is connected to this place. I use lat / lon and the Haversine algorithm to determine the distance between two points.
NEXT, I would like to use dijkstra's shortest path algorithm to find the shortest path between source and destination (source and destination are user selectable)
It is not for commercial use and does not need the support of hundreds or thousands of places.
I am looking for some objective C code that will perform this search.
user1278974
source share