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

Pelias search returns full features from localhost but features become empty when I send request using public IP. #320

Open
NikitaMears opened this issue Aug 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@NikitaMears
Copy link

NikitaMears commented Aug 25, 2023

Request http://172.17.xxx.x:4000/v1/search?text=Merkato

As seen here features is empty.

{
"geocoding": {
"version": "0.2",
"attribution": "http://172.17.0.1:4000/attribution",
"query": {
"text": "Merkato",
"size": 10,
"layers": [
"venue",
"street",
"country",
"macroregion",
"region",
"county",
"localadmin",
"locality",
"borough",
"neighbourhood",
"continent",
"empire",
"dependency",
"macrocounty",
"macrohood",
"microhood",
"disputed",
"postalcode",
"ocean",
"marinearea"
],
"private": false,
"focus.point.lat": 45.52,
"focus.point.lon": -122.67,
"lang": {
"name": "English",
"iso6391": "en",
"iso6393": "eng",
"via": "default",
"defaulted": true
},
"querySize": 20,
"parser": "pelias",
"parsed_text": {
"subject": "Merkato"
}
},
"warnings": [
"performance optimization: excluding 'address' layer"
],
"engine": {
"name": "Pelias",
"author": "Mapzen",
"version": "1.0"
},
"timestamp": 1692988060400
},
"type": "FeatureCollection",
"features": []
}

But if I try on the server browser

Request http://localhost:4000/v1/search?text=Merkato

I get full features. like this

{"geocoding":{"version":"0.2","attribution":"http://localhost:4000/attribution","query":{"text":"Merkato","size":10,"layers":["venue","street","country","macroregion","region","county","localadmin","locality","borough","neighbourhood","continent","empire","dependency","macrocounty","macrohood","microhood","disputed","postalcode","ocean","marinearea"],"private":false,"focus.point.lat":9.145,"focus.point.lon":40.489673,"lang":{"name":"English","iso6391":"en","iso6393":"eng","via":"header","defaulted":false},"querySize":20,"parser":"pelias","parsed_text":{"subject":"Merkato"}},"warnings":["performance optimization: excluding 'address' layer"],"engine":{"name":"Pelias","author":"Mapzen","version":"1.0"},"timestamp":1692988743674},"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[38.731229,9.033759]},"properties":{"id":"node/7102193971","gid":"openstreetmap:venue:node/7102193971","layer":"venue","source":"openstreetmap","source_id":"node/7102193971","country_code":"ET","name":"Merkato","confidence":1,"match_type":"exact","distance":193.687,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Merkato, Addis Ababa, Ethiopia","addendum":{"osm":{"operator":"Addis Ababa Bus Service Enterprise"}}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[37.766796,6.861981]},"properties":{"id":"node/6174795585","gid":"openstreetmap:venue:node/6174795585","layer":"venue","source":"openstreetmap","source_id":"node/6174795585","country_code":"ET","name":"Market","confidence":1,"match_type":"exact","distance":393.282,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Southern Nations Nationalities and People's Region","region_gid":"whosonfirst:region:85671133","region_a":"SN","county":"Welayita","county_gid":"whosonfirst:county:1108695237","label":"Market, SN, Ethiopia"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[38.740074,9.029677]},"properties":{"id":"way/49911439","gid":"openstreetmap:venue:way/49911439","layer":"venue","source":"openstreetmap","source_id":"way/49911439","country_code":"ET","name":"Merkato Market","confidence":1,"match_type":"exact","distance":192.748,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Merkato Market, Addis Ababa, Ethiopia"},"bbox":[38.7359116,9.0241514,38.7431239,9.0321069]},{"type":"Feature","geometry":{"type":"Point","coordinates":[38.737562,9.031284]},"properties":{"id":"way/27910031","gid":"openstreetmap:venue:way/27910031","layer":"venue","source":"openstreetmap","source_id":"way/27910031","country_code":"ET","name":"Merkato (Clothing)","confidence":1,"match_type":"exact","distance":193.011,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Merkato (Clothing), Addis Ababa, Ethiopia"},"bbox":[38.7372467,9.0309385,38.7378782,9.0316349]},{"type":"Feature","geometry":{"type":"Point","coordinates":[38.735158,9.012889]},"properties":{"id":"way/712340890","gid":"openstreetmap:venue:way/712340890","layer":"venue","source":"openstreetmap","source_id":"way/712340890","country_code":"ET","name":"Lideta Merkato Shopping Mall","confidence":1,"match_type":"exact","distance":193.424,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Lideta Merkato Shopping Mall, Addis Ababa, Ethiopia"},"bbox":[38.7348915,9.0127354,38.7354246,9.0130417]},{"type":"Feature","geometry":{"type":"Point","coordinates":[38.737069,9.030999]},"properties":{"id":"way/27910034","gid":"openstreetmap:venue:way/27910034","layer":"venue","source":"openstreetmap","source_id":"way/27910034","country_code":"ET","name":"Merkato (Traditional Souvenirs)","confidence":1,"match_type":"exact","distance":193.067,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Merkato (Traditional Souvenirs), Addis Ababa, Ethiopia"},"bbox":[38.7367831,9.0306854,38.737354,9.0313116]},{"type":"Feature","geometry":{"type":"Point","coordinates":[38.753187,9.004269]},"properties":{"id":"node/846942782","gid":"openstreetmap:venue:node/846942782","layer":"venue","source":"openstreetmap","source_id":"node/846942782","country_code":"ET","name":"Cherkos to Merkato Station","confidence":1,"match_type":"exact","distance":191.527,"accuracy":"point","country":"Ethiopia","country_gid":"whosonfirst:country:85632257","country_a":"ETH","region":"Addis Ababa","region_gid":"whosonfirst:region:85671149","region_a":"AA","county":"Addis Ababa Zone 1","county_gid":"whosonfirst:county:1108695109","county_a":"ON","locality":"Addis Ababa","locality_gid":"whosonfirst:locality:421170391","label":"Cherkos to Merkato Station, Addis Ababa, Ethiopia"}}],"bbox":[37.766796,6.861981,38.753187,9.033759]}

I fell I'm missing sth and I need help.

@NikitaMears NikitaMears added the bug Something isn't working label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant