Calculate distance and integrate form with GetSwift