diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/geocode.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/geocode.php b/actions/geocode.php index 7fd696baf..9671d2c27 100644 --- a/actions/geocode.php +++ b/actions/geocode.php @@ -52,7 +52,12 @@ class GeocodeAction extends Action } $this->lat = $this->trimmed('lat'); $this->lon = $this->trimmed('lon'); - $this->location = Location::fromLatLon($this->lat, $this->lon); + $location = Location::fromLatLon($this->lat, $this->lon); + if ($location) { + $this->location = Location::fromId($location->location_id, $location->location_ns); + $this->lat = $this->location->lat; + $this->lon = $this->location->lon; + } return true; } |