Add long / lat range & type validation helper

Created on 19 September 2021, about 3 years ago
Updated 24 January 2024, 10 months ago

static function to GeolocationItem:

Like this:

'lat_north_east' => (isset($values[1]) && is_numeric($values[1]) && $values[1] >= -90 && $values[1] <= 90) ? floatval($values[1]) : FALSE,

'lng_north_east' => (isset($values[2]) && is_numeric($values[2]) && $values[2] >= -180 && $values[2] <= 180) ? floatval($values[2]) : FALSE,

πŸ“Œ Task
Status

Active

Version

3.0

Component

Geolocation Field / Backend

Created by

πŸ‡©πŸ‡ͺGermany christianadamski Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024