source/php/Module/Location/Location.php
public function saveLocation($post_id, $post, $update)
    {
        $api_url = get_field('event_api_url', 'option');
        $location_endpoint = rtrim($api_url, '/') . '/location/';

        if (isset($_POST['mod_location'])) {
            $location_endpoint = rtrim($api_url, '/') . '/location/' . $_POST['mod_location'] . '?_embed';
            @$json = file_get_contents($location_endpoint);
            if ($json != false) {
                $location = json_decode($json);
                update_post_meta($post_id, 'mod_location_data', $location);
            }
        }

        return;
    }
public function saveLocation($post_id, $post, $update)
    {
        $api_url = get_field('event_api_url', 'option');
        $location_endpoint = rtrim($api_url, '/') . '/location/';

        if (isset($_POST['mod_location'])) {
            $location_endpoint = rtrim($api_url, '/') . '/location/' . $_POST['mod_location'] . '?_embed';
            @$json = file_get_contents($location_endpoint);
            if ($json != false) {
                $location = json_decode($json);
                update_post_meta($post_id, 'mod_location_data', $location);
            }
        }

        return;
    }
Save location module metadata on save
@param int   $post_id    The post ID
@param post  $post       The post object
@param bool  $update     Whether this is an existing post being updated or not