WIP RTR Reporting

This commit is contained in:
Frank Schubert
2024-12-06 13:45:20 +01:00
parent 3a7b356b30
commit 33d7a4e5f1
12 changed files with 604 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ class Gmaps_Geocoding {
$address = urlencode($address);
$url = TT_GEOCODING_API_URL."?address=$address&key=".TT_GEOCODING_API_SECRET;
$cstr = "";
if(count($components)) {
$component_string = implode("|", $components);
@@ -41,10 +41,10 @@ class Gmaps_Geocoding {
return false;
}
$results = $json->results;
if(count($results) > 1) {
/*if(count($results) > 1) {
$log->warn(__FILE__.": Got more then 1 result. Aborting. ($url)");
return false;
}
}*/
$lat = $results[0]->geometry->location->lat;
$long = $results[0]->geometry->location->lng;