WIP RTR Reporting
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user