I am using Geocoder PHP library to get spit on location information for an address. I get all data but the district code which I need as well. Where am I going wrong?
Below is the code I am using:
$adapter = new \Geocoder\HttpAdapter\CurlHttpAdapter();
$GeoJSON = new \Geocoder\Dumper\GeoJsonDumper;
$geocoder = new \Geocoder\Geocoder();
$lookfor = 'address goes here';
$geocoder->registerProvider(new \Geocoder\Provider\GoogleMapsProvider($adapter));
$result = $geocoder->geocode($lookfor);
echo $GeoJSON->dump($result);
Here is the current output:
{"type":"Feature","geometry":{"type":"Point","coordinates":[-77.2899939,38.875973]},"properties":{"streetNumber":"93","streetName":"Flower Lane","zipcode":"00412","city":"Onkle","county":"Fur County","countyCode":"Fur COUNTY","region":"Virginia","regionCode":"VA","country":"United States","countryCode":"US"},"bounds":{"south":38.875973,"west":-77.2899939,"north":38.875973,"east":-77.2899939}}