pelias / pip-service

Pelias point-in-polygon-service
https://pelias.io
MIT License
16 stars 18 forks source link

skipping xxxxx : neighbourhood without locality or localadmin #112

Closed pravink closed 4 years ago

pravink commented 4 years ago

Hey team!

I was using your awesome geocoding engine when I noticed something interesting. Let me tell you more about it.


Here's what I did :innocent:

pip service is running with below outputs in the logs

wof-pip-service:filterOutCitylessNeighbourhoods] skipping 85929801: neighbourhood without locality or localadmin


Here's what I got :scream_cat:

when i do a curl it takes a lot of time and responds with - empty reply from server [root@ip-xxxx pip-service]# curl http://localhost:3102/-106.937/34.060 curl: (52) Empty reply from server [root@ip-xxxxx pip-service]#

I believe PIP service is not locating whosonfirst data but I do have downloaded the data successfully and given the reference of the same via config

Here's what I was expecting :sparkles:

does anyone have any clues where i am missing something?

Here's what I think could be improved :trophy:

missinglink commented 4 years ago

Please locate the file named 85929801.geojson within your WhosOnFirst download directory.

It should be a version of this file https://github.com/whosonfirst-data/whosonfirst-data-admin-tr/blob/master/data/859/298/01/85929801.geojson

Scroll down to see the hierarchy:

"wof:hierarchy": [
{
"continent_id": 102191569,
"country_id": 85632393,
"county_id": 890461921,
"neighbourhood_id": 85929801,
"region_id": 85679237
}
],

the error message you posted above is "skipping 85929801: neighbourhood without locality or localadmin" I can see that this is correct, this record defines a neighbourhood but there is no associated locality (city/town/etc).

This is the expected behaviour.

missinglink commented 4 years ago

We have recently had reports of failure to load on machines with 8GB RAM, please ensure that you have more RAM free and try again.

pravink commented 4 years ago

Thanks! It worked after importing all wof admin data.