From d6cabfd2e91018d6b2c76d137abc109a50ea3553 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Mon, 6 Jun 2022 17:43:36 -0400 Subject: photon: update Geocode Include towns in the search result. --- photon/photon.go | 1 + 1 file changed, 1 insertion(+) (limited to 'photon') 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() -- cgit v1.2.3