 class MProjectsItem
 {
     let name:String
-    let model:DPokePassProject
+    let model:DObjectProject
     var locations:[MProjectItemLocation]?
     fileprivate let kHeader:String = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n"
     fileprivate let kItemGroup:String = "<gpx>\n"
     fileprivate let kItemGroupClose:String = "</gpx>"
     
-    init(model:DPokePassProject)
+    init(model:DObjectProject)
     {
         name = model.name!
         self.model = model

                        sumLatitude += increaseLatitude
                        sumLongitude += increaseLongitude
                        
                        itemFor(sumLatitude, longitude:sumLongitude)
                    }
                }
                
                itemForLocation(locationB!)
            }
            
            let newLocationA:DPokePassLocation? = locationB
            let newLocationB:DPokePassLocation?
            let countLocations:Int = model.projectLocations.count
            let nextIndex:Int = index + 1
            
            if nextIndex < countLocations
            {
                newLocationB = model.projectLocations[nextIndex]
            }
            else
            {
                newLocationB = nil
            }
            
            pointsBetweenLocations(nextIndex, locationA:newLocationA, locationB:newLocationB, maxDistance:maxDistance)
        }
    }
    
    //MARK: public
    
    func getLocations(_ maxDistance:Double)
    {
        locations = []
        let firstLocation:DPokePassLocation? = model.projectLocations.first
        pointsBetweenLocations(0, locationA:nil, locationB:firstLocation, maxDistance:maxDistance)
    }
    
    func print() -> String

    
    //MARK: private
    
    private func itemForLocation(location:DObjectLocation)
    {
        let latitude:Double = location.latitude
        let longitude:Double = location.longitude
        
        itemFor(latitude:latitude, longitude:longitude)
    }
    
    private func itemFor(latitude:Double, longitude:Double)
    {
        let item:MProjectItemLocation = MProjectItemLocation(latitude:latitude, longitude:longitude)
        locations!.append(item)
    }
    
    private func pointsBetweenLocations(
        index:Int,
        locationA:DObjectLocation?,
        locationB:DObjectLocation?,
        maxDistance:Double)
    {
        if locationB != nil
        {
