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

Get population value from reverse geocoding result #1623

Open
iddqd2d opened this issue May 5, 2022 · 1 comment
Open

Get population value from reverse geocoding result #1623

iddqd2d opened this issue May 5, 2022 · 1 comment

Comments

@iddqd2d
Copy link

iddqd2d commented May 5, 2022

I can get the population value for forward geocoding, but not for reverse geocoding:
image

How can I get the population value for reverse geocoding?

@orangejulius
Copy link
Member

Hi @iddqd2d,

Thanks for the report. I can confirm this is true.

Here's a reverse geocoding query for a location in Paris. The results don't include population:

/v1/reverse?layers=locality&point.lat=48.854&point.lon=2.358

Whereas a forward geocoding query for Paris does return population:

/v1/search?text=paris, france

I think this is because coarse reverse geocoding uses the Point-in-Polygon service, which either doesn't include or doesn't return population information. Whereas forward geocoding uses the main Elasticsearch datastore, which does.

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