OpenDc311Geocode::getAddressByCoordinates()

  • Description: A method for retrieving information about an address based on latitude and longitude coordinates.
  • Arguments: latitude, longitude
  • Returns: An object describing an address based on latitude and longitude.
1
2
3
4
5
6
api_key = 'assigned-api-key';

echo '<pre>';
print_r( $octo-&gt;getAddressByCoordinates('38.89544591','-77.01565221') );
echo '</pre>';
?&gt;

Result: