| @@ 190-197 (lines=8) @@ | ||
| 187 | return $response; |
|
| 188 | } |
|
| 189 | ||
| 190 | public static function validateLatitude($lat) |
|
| 191 | { |
|
| 192 | if (!is_numeric($lat)) return false; |
|
| 193 | ||
| 194 | if ($lat>90 || $lat<-90) return false; |
|
| 195 | ||
| 196 | return true; |
|
| 197 | } |
|
| 198 | ||
| 199 | public static function validateLongitude($lng) |
|
| 200 | { |
|
| @@ 199-206 (lines=8) @@ | ||
| 196 | return true; |
|
| 197 | } |
|
| 198 | ||
| 199 | public static function validateLongitude($lng) |
|
| 200 | { |
|
| 201 | if (!is_numeric($lng)) return false; |
|
| 202 | ||
| 203 | if ($lng>180 || $lng<-180) return false; |
|
| 204 | ||
| 205 | return true; |
|
| 206 | } |
|
| 207 | ||
| 208 | public function addOrdersFromCsvFile($csvFileHandle, $ordersFieldsMapping) |
|
| 209 | { |
|