| @@ 256-263 (lines=8) @@ | ||
| 253 | return $response; |
|
| 254 | } |
|
| 255 | ||
| 256 | public static function validateLatitude($lat) |
|
| 257 | { |
|
| 258 | if (!is_numeric($lat)) return false; |
|
| 259 | ||
| 260 | if ($lat>90 || $lat<-90) return false; |
|
| 261 | ||
| 262 | return true; |
|
| 263 | } |
|
| 264 | ||
| 265 | public static function validateLongitude($lng) |
|
| 266 | { |
|
| @@ 265-272 (lines=8) @@ | ||
| 262 | return true; |
|
| 263 | } |
|
| 264 | ||
| 265 | public static function validateLongitude($lng) |
|
| 266 | { |
|
| 267 | if (!is_numeric($lng)) return false; |
|
| 268 | ||
| 269 | if ($lng>180 || $lng<-180) return false; |
|
| 270 | ||
| 271 | return true; |
|
| 272 | } |
|
| 273 | ||
| 274 | public function addOrdersFromCsvFile($csvFileHandle, $ordersFieldsMapping) |
|
| 275 | { |
|