25 if (($location->getId() > 0))
27 $result[
'ID'] = $location->getId();
30 $latitude = $location->getLatitude();
31 $longitude = $location->getLongitude();
33 $result[
'CODE'] = $location->getCode();
34 $result[
'EXTERNAL_ID'] = $location->getExternalId();
35 $result[
'SOURCE_CODE'] = $location->getSourceCode();
36 $result[
'TYPE'] = $location->getType();
37 $result[
'LATITUDE'] = $latitude ===
'' ? null : (float)$latitude;
38 $result[
'LONGITUDE'] = $longitude ===
'' ? null : (float)$longitude;