summaryrefslogtreecommitdiffstats
path: root/photon
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-06 17:43:36 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-06 17:43:36 -0400
commitd6cabfd2e91018d6b2c76d137abc109a50ea3553 (patch)
treebb4d92799c2b5455685ea0408cbb9d09e7ca9541 /photon
parentd6be455450c78b27c704fb8fd165abd7ecfc4966 (diff)
photon: update Geocode
Include towns in the search result.
Diffstat (limited to 'photon')
-rw-r--r--photon/photon.go1
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()