Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocate within a specific place (city, country...) #8

Closed
ccamara opened this issue Mar 6, 2018 · 1 comment
Closed

Geolocate within a specific place (city, country...) #8

ccamara opened this issue Mar 6, 2018 · 1 comment

Comments

@ccamara
Copy link

ccamara commented Mar 6, 2018

I would like to geolocate addresses from a particular city.

I have just recently used photon R package as a geolocation solution with certain degree of success. Unfortunately, some results are placed very far away from the place I am trying to geolocate, even if I use location bias:

`df = geocode(address, limit = 1,key = "highway", locbias = c(-0.8787, 41.6486))`

As far as I know Photon can accept keys and values, but don't know how to use it, further than what I did (If I am not wrong it will search only OSM's objects tagged as highway=*). Is there a way to tell phonon to search only OSM's objects tagged as highway=* AND are located within a city?

@rCarto
Copy link
Owner

rCarto commented Dec 10, 2019

Hi,
The location bias does not seem to work very well.
I could add the bbox filtering param (https://github.com/komoot/photon#filter-results-by-bounding-box).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants