private function fieldGeolocation($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'address'           => $before['address'],
                    'latitude'          => $before['latitude'],
                    'longitude'         => $before['longitude'],
                    'formatted_address' => $before['formatted_address'],
                ],
            ],
            'after'  => [
                'render' => [
                    'address'           => $after['address'],
                    'latitude'          => $after['latitude'],
                    'longitude'         => $after['longitude'],
                    'formatted_address' => $after['formatted_address'],
                ],
            ],
        ];
    }
private function fieldGeolocation($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'address'           => $before['address'],
                    'latitude'          => $before['latitude'],
                    'longitude'         => $before['longitude'],
                    'formatted_address' => $before['formatted_address'],
                ],
            ],
            'after'  => [
                'render' => [
                    'address'           => $after['address'],
                    'latitude'          => $after['latitude'],
                    'longitude'         => $after['longitude'],
                    'formatted_address' => $after['formatted_address'],
                ],
            ],
        ];
    }
private function fieldGeolocation ( $ key , $ value , array $ fields ) { $ before = Json :: parse ( $ value [ 0 ] ) ; $ after = Json :: parse ( $ value [ 1 ] ) ; return [ 'type' => $ fields [ $ key ] [ 'type' ] , 'before' => [ 'render' => [ 'address' => $ before [ 'address' ] , 'latitude' => $ before [ 'latitude' ] , 'longitude' => $ before [ 'longitude' ] , 'formatted_address' => $ before [ 'formatted_address' ] , ] , ] , 'after' => [ 'render' => [ 'address' => $ after [ 'address' ] , 'latitude' => $ after [ 'latitude' ] , 'longitude' => $ after [ 'longitude' ] , 'formatted_address' => $ after [ 'formatted_address' ] , ] , ] , ] ; }
Compile changes for geolocation field types.

@param string $key
@param string $value
@param array  $fields

@return array
Compile changes for geolocation field types .