From 2e7b7ef34ca033fa8de8a7f7781ea501ab38e131 Mon Sep 17 00:00:00 2001 From: Serge Rodovnichenko Date: Tue, 20 Oct 2020 15:56:17 +0300 Subject: [PATCH] Send an API key with geocoding request Google Geocode API requires an API key --- wa-system/map/adapters/googleMap.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wa-system/map/adapters/googleMap.class.php b/wa-system/map/adapters/googleMap.class.php index d0e1cc9a0..1402b3758 100644 --- a/wa-system/map/adapters/googleMap.class.php +++ b/wa-system/map/adapters/googleMap.class.php @@ -185,6 +185,10 @@ protected function sendGeoCodingRequest($address) 'address' => $address, 'sensor' => 'false', ); + + if ($key = $this->getSettings('key')) { + $params['key'] = $key; + } $options = array( 'format' => waNet::FORMAT_JSON,