brad-mc
8/28/2019 - 3:32 PM

findLocationOfAddressObject

$addressString = $addressObject->getPostcode();
$retval = NominatimTools::findLocationOfAddressString($addressString);
$geocodeObject = $retval['geocodeObject'];

if ($geocodeObject instanceof \OSMObject && $geocodeObject->getCoordinate()) {
    return $geocodeObject->getCoordinate();
}