#import "CheckPoint.h" #import "Connection.h" @implementation Connection -(id)initWithCheckPointsFrom:(CheckPoint*)from:(CheckPoint*)to:(float)margin{ if(self = [super init]){ fromCheckPoint = from; toCheckPoint = to; Margin = margin; fromLocationCoordinate = fromCheckPoint.Position.coordinate; } return self; }