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

Polygon not returned as Search Result #259

Open
nafis042 opened this issue Oct 13, 2017 · 5 comments
Open

Polygon not returned as Search Result #259

nafis042 opened this issue Oct 13, 2017 · 5 comments

Comments

@nafis042
Copy link

Whenever I search a query it always returns as point but not polygon or linestring. I can see the osm_type="R", but in geometry field always shows type="point". how can I get these polygon as geometry?

@dve
Copy link

dve commented Apr 19, 2018

The polygon seems not to be saved in ES, according to https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/PhotonDoc.java.
Nominatim seems to "know" the polygon: https://github.com/openstreetmap/Nominatim/blob/master/sql/tables.sql
So it should be possible to store in ES and deliver it by the service.

Is this not done for a special reason, or did just no one needed the feature?

@lonvia
Copy link
Collaborator

lonvia commented Apr 25, 2018

Photon only exports the centroid and the bounding box of the geometry from Nominatim. Any polygon or way geometries are lost. Adding full geometries would increase the database size quite a bit.

@ducdigital
Copy link

is it possible to config Photon to load geometries in ES too?

@kurko
Copy link

kurko commented May 23, 2018

Adding full geometries would increase the database size quite a bit.

Perhaps it'd make sense for an option to exist during importation so the user can decide on whether to import it or not.

@GeorgeKontsevik
Copy link

I sent the geocoded coordinate to nominatim to get the polygon. This combo worked quite well for me (since the nominatim is very picky for the input address format)

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

No branches or pull requests

6 participants