get location data for a venue

Get the location data for a venue.

function getLatLong($venue_id, $v, $oauth_token) {
   $venue_url = \'https:api.foursquare.comv2venues\' . $venue_id . \'?oauth_token=\' . $oauth_token . \'&v=\' . $v;
    
   $response       = file_get_contents($venue_url);
   $venue          = json_decode($response, true);
   $venue_response = $venue[\'response\'];
   $location       = $venue_response[\'venue\'][\'location\'];
   $lat            = $location[\'lat\'];
   $long           = $location[\'lng\'];
    
   return $lat . \', \' . $long;
}