summaryrefslogtreecommitdiffstats
path: root/photon
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-07 01:31:29 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-07 01:31:29 -0400
commit6d400c5bdc2ca294c9f10836b590c7cd472e346b (patch)
tree2acf28325403543d02222ab921f0d59618b88a96 /photon
parent456e523f18fce25bb7a5c69a608ed7f6fd39ed3e (diff)
photon: update `Geocode`
Include villages 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 8c85a09..d75d369 100644
--- a/photon/photon.go
+++ b/photon/photon.go
@@ -83,6 +83,7 @@ func Geocode(location string) ([]Coordinates, error) {
q.Add("q", location)
q.Add("osm_tag", "place:city")
q.Add("osm_tag", "place:town")
+ q.Add("osm_tag", "place:village")
q.Add("limit", "10")
u.RawQuery = q.Encode()