/** * Checks whether the ATC controller has relocated * to another location. * * @param \ATC $atc * @param array $datafeed * @return boolean */ protected function hasRelocated($atc, $datafeed) { return $datafeed['longitude'] != $atc->getOriginal('lon') || $datafeed['latitude'] != $atc->getOriginal('lat'); }