diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-06 17:43:36 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-06 17:43:36 -0400 |
commit | d6cabfd2e91018d6b2c76d137abc109a50ea3553 (patch) | |
tree | bb4d92799c2b5455685ea0408cbb9d09e7ca9541 /photon | |
parent | d6be455450c78b27c704fb8fd165abd7ecfc4966 (diff) |
photon: update Geocode
Include towns in the search result.
Diffstat (limited to 'photon')
-rw-r--r-- | photon/photon.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/photon/photon.go b/photon/photon.go index 4b8844b..708deae 100644 --- a/photon/photon.go +++ b/photon/photon.go @@ -81,6 +81,7 @@ func Geocode(location string) ([]Coordinates, error) { q := url.Values{} q.Add("q", location) q.Add("osm_tag", "place:city") + q.Add("osm_tag", "place:town") q.Add("limit", "10") u.RawQuery = q.Encode() |