Skip to content
Snippets Groups Projects

fixed

Open chetan requested to merge issue/weather-3403648:3403648- into 2.x
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -258,9 +258,10 @@ class ParserService {
@@ -258,9 +258,10 @@ class ParserService {
// @codingStandardsIgnoreStart
// @codingStandardsIgnoreStart
$place['geoid'] = $fc->location->location['geobase'] . "_" . $fc->location->location['geobaseid'];
$place['geoid'] = $fc->location->location['geobase'] . "_" . $fc->location->location['geobaseid'];
$place['latitude'] = (string) $fc->location->location['latitude'];
$place['latitude'] = (string) $fc->location->location['latitude'];
$place['latitude'] = round($place['latitude'], 5);
$place['latitude'] = round((float) $place['latitude'], 5);
$place['longitude'] = (string) $fc->location->location['longitude'];
$place['longitude'] = (string) $fc->location->location['longitude'];
$place['longitude'] = round($place['longitude'], 5);
$place['longitude'] = round((float) $place['longitude'], 5);
 
$place['country'] = (string) $fc->location->country;
$place['country'] = (string) $fc->location->country;
$place['name'] = (string) $fc->location->name;
$place['name'] = (string) $fc->location->name;
$url = (string) $fc->credit->link['url'];
$url = (string) $fc->credit->link['url'];
Loading