jriou,
@jriou@hachyderm.io avatar

I'm trying to build a database for my Hard Rock Café t-shirt collection and use #opemstreetmap and #postgis to find the next one to buy/visit.

It turns out the #Novimatim API returns 50 locations but not Amsterdam. But if I search specifically for the "Hard Rock Café Amsterdam", it's there https://www.openstreetmap.org/node/497179291

Limit is set to 1000 results.

Does anyone know why?

ascherbaum,
@ascherbaum@mastodon.social avatar

@jriou Whats your Nominatim query?

jriou,
@jriou@hachyderm.io avatar

@ascherbaum <https://nominatim.openstreetmap.org/search?q=Hard> Rock Café&amp;limit=1000&amp;format=json (url encoded + custom user agent)

ascherbaum,
@ascherbaum@mastodon.social avatar

@jriou That result set is very limited, but Overpass finds it:

https://overpass-turbo.eu/s/1LwQ

Wonder what is wrong there ... maybe ask on an OSM mailing list?

jriou,
@jriou@hachyderm.io avatar

@ascherbaum The mailing lists seem to be quiet. I've created a topic on the OSM forums instead https://community.openstreetmap.org/t/incomplete-search-on-nominatim-api/113225 🤞

jriou,
@jriou@hachyderm.io avatar

@ascherbaum The limit cannot be more than 40 and, indeed, the Overpass API should be used instead. Time to learn a new query language I guess.

ascherbaum,
@ascherbaum@mastodon.social avatar

@jriou The query I gave you should work.

I've seen the response in the forum.

jriou,
@jriou@hachyderm.io avatar

@ascherbaum Nice, I have now 125 results 😎

ascherbaum,
@ascherbaum@mastodon.social avatar

@jriou And how many did you visit so far?

jriou,
@jriou@hachyderm.io avatar

@ascherbaum 22 (only 😭)

jriou,
@jriou@hachyderm.io avatar

@ascherbaum OK, the data wasn't good enough to me. So I went yolo and parsed the website directly. Look at this handsome oneliner 😎

ascherbaum,
@ascherbaum@mastodon.social avatar

@jriou Hope you have a unit test for when that website changes ;-)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines