         let latitude:Double = location.latitude
         let longitude:Double = location.longitude
         
+        itemFor(latitude, longitude:longitude)
+    }
+    
+    private func itemFor(latitude:Double, longitude:Double)
+    {
         let item:MProjectItemLocation = MProjectItemLocation(latitude:latitude, longitude:longitude)
         locations!.append(item)
     }

                newLocationB = nil
            }
            
            pointsBetweenLocations(nextIndex, locationA:newLocationA, locationB:newLocationA, maxDistance:maxDistance)
        }
    }
    

    func getLocations(maxDistance:Double)
    {
        locations = []
        let firstLocation:DPokePassLocation? = model.projectLocations.first
        pointsBetweenLocations(0, locationA:nil, locationB:firstLocation, maxDistance:maxDistance)
    }
}