Peter Johnson
Peter Johnson
Hi @gagandeepsingh1105, the 'administrative hierarchy' (ie. the city/province/country) of each record in Pelias is sourced exclusively from the WhosOnFirst dataset through point-in-polygon lookups at index time.
I believe this is a duplicate of https://github.com/pelias/csv-importer/issues/74
I'm not against adding this option to custom builds, the issue is that currently all administrative regions are composed of a **source**, **id** and **term** (with an optional **abbreviation**). We...
It's possible to have multiple associated 'parents' for a single layer, so for example a record can have multiple 'region' records associated. The issue would be that we only *return*...
The `debug` query param displays a bunch more info: https://geocoder.alpha.phac.gc.ca/api/search?text=%22283%20prince%20philip%20dr%20st%20john%27s%20nl%22&layers=address&debug=1 You can see that the Placeholder service ran, it found a matching `locality`: ```json { "controller:placeholder": [ { "id": 890456615,...
The geometry of [890456615 St. John's](https://github.com/whosonfirst-data/whosonfirst-data-admin-ca/blob/master/data/890/456/615/890456615.geojson) is of type `Point`, which explains why the address wasn't associated via the PIP service. (the address must lie inside the boundary)
Maybe for your usecase you can disable the Placeholder service, or possibly don't add any data to it? I haven't tested it, but it might prevent the `filter` condition being...
@the-epeecurean are there better open geo data for that region? the only one I can find is points only, does the CA govt publish something better than this? https://opendata.gov.nl.ca/public/opendata/page/?page-id=datasetdetails&id=265
[This comment](https://gist.github.com/cschiewek/246a244ba23da8b9f0e7b11a68bf3285?permalink_comment_id=4380964#gistcomment-4380964) seems to be helpful but I still wasn't able to get it to work. note: requires `xquartz` on MacOS. ```bash Unrecognized option: host.docker.internal:0 use: X [:] [option] ......
Wow this looks great, I'll have a closer look next week 👍