docker icon indicating copy to clipboard operation
docker copied to clipboard

Not able to get data from geoname source

Open ShreyTanna29 opened this issue 7 months ago • 4 comments

I have a setup of pelias docker for indian coordinates, I have osm data ,wof data and geoname data but I am not able to get data from geoname even after adding it to request parameter.

ISSUE : when i set geoname as source parameter I want the data to come from geoname source but this is not happening instead I am getting data from wof and osm only even after clearly mentioning geoname as source in url parameter.

SETUP : I have pelias docker setup on a ubuntu VPS. I have downloaded geoname from this url : http://download.geonames.org/export/dump/IN.zip unzipped it and then put it into data/geoname folder and mentioned it in pelias.json also i tried setup of pelias/geonames but still am not able to data from geoname source

Expected behavior to get data from geoname when mention it as a source in url parameter

ShreyTanna29 avatar May 21 '25 10:05 ShreyTanna29

When you set the querystring param ?sources=geonames the results should all be from Geonames. As per this example: https://pelias.github.io/compare/#/v1/search?sources=geonames&size=1&text=paris

Are you maybe setting geoname rather than geonames? If so, you should see a warning such as this in the geojson response:

Image

missinglink avatar May 23 '25 11:05 missinglink

hi @missinglink in my query param i am using geonames, here is an SS. issue is that the source of the property in features array is "wof" but i have mentioned source as geonames in param.

Image

ShreyTanna29 avatar May 24 '25 05:05 ShreyTanna29

Can you please post that query URL here so I can investigate?

It might be caused by the deduplication logic, in the case where there are the same results from different sources, we have logic to 'squash' duplicates and select a 'preferred' record to display, it might be that in this situation that the wof record is being selected.

missinglink avatar May 26 '25 13:05 missinglink

here it is : http://20.198.24.187:4000/v1/reverse?point.lon=78.91812&point.lat=29.215147&sources=geonames

ShreyTanna29 avatar May 28 '25 04:05 ShreyTanna29