I am tracking locations and their connections to other locations.
I keep locations in an NSArray while each location is represented as a Dictionary. Each location has Dictionary has the attributes (locationName, Connections, latitude, longitude) where Connections is an Array of other locations this location is connected TO (not from). I use lat/lon and a 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 a source and destination location (source and destination are selected by the user)
This is not for commercial use and does not need to support hundreds or thousands of locations.
I am looking for some objective C code that will perform this search.