/** * Deserialize a JSON array in a compatible object with the library GeoJSON. * * @param string $array The GeoJSON string. * * @return Feature|FeatureCollection The PHP equivalent object. */ function treasurehunt_geojson_to_object($array) { $geojson = new GeoJSON(); return $geojson->loadArray($array); }