Commit 1b7cc339 authored by Evan Prodromou's avatar Evan Prodromou

Use passed-in lat long in geocode.php

Don't rewrite the lat-long for a location in geocode.php.
parent a1c9874a
......@@ -52,12 +52,7 @@ class GeocodeAction extends Action
$this->lat = $this->trimmed('lat');
$this->lon = $this->trimmed('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;
$this->location = Location::fromLatLon($this->lat, $this->lon);
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment