I need help in nominatim search. i need to get nearest schools,banks,grocery stores, etc of a particular city. I found the keywords in http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN, but i don't know how it can use , i tried to give like http://nominatim.openstreetmap.org/search?q=grocery,bangalore&format=xml&polygon=1&addressdetails=1 , but for some keywords no results getting. Can any one help me please..?

asked 02 Aug '12, 07:53

pramod_ck's gravatar image

pramod_ck
41337
accept rate: 0%

edited 02 Aug '12, 09:11

SomeoneElse's gravatar image

SomeoneElse ♦
32.0k63330748

2

I've fixed the first link; the second worked for me. If you miss out the "format=xml" part of the query string you get the more usual nominatim search results.

(02 Aug '12, 09:15) SomeoneElse ♦

Which grocery shops would you expect to find that Nominatim didn't? Do you have node or way IDs for any examples?

A search for fuel stations works:

http://nominatim.openstreetmap.org/search.php?q=fuel%2Cbangalore&viewbox=-161.72%2C79.92%2C161.72%2C-69.59&polygon=1

or in XML format

http://nominatim.openstreetmap.org/search.php?format=xml&q=fuel%2Cbangalore&viewbox=-161.72%2C79.92%2C161.72%2C-69.59&polygon=1

(02 Aug '12, 09:19) SomeoneElse ♦
1

I have this <searchresults timestamp="Thu, 02 Aug 12 09:40:35 +0100" attribution="Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0." querystring="grocery,bangalore" polygon="true" more_url="http://nominatim.openstreetmap.org/search?format=xml&amp;exclude_place_ids=&amp;accept-language=en-GB,en-US;q=0.8,en;q=0.6&amp;polygon=1&amp;addressdetails=1&amp;q=grocery%2Cbangalore"></searchresults>

(02 Aug '12, 09:42) andy mackey

so what next

(02 Aug '12, 09:42) andy mackey
1

@andy mackey for me also getting same results. @SomeoneElse thanks it works, but in my site i need to show all grocery stores in bangalore. I searched how to use the keywords in nominatim, i found one example like http://nominatim.openstreetmap.org/search?q=bangalore[hospitals]&format=xml&polygon=0&addressdetails=1 that also not working for all keywords.

(02 Aug '12, 09:53) pramod_ck

For the avoidance of doubt - grocery shops will only appear on the map and in the data in Bangalore if:

  1. Someone's actually added any to the map there.
  2. They've tagged them as "shop=grocery"
  3. They've subsequently agreed to the licence change so that the data is still there.

If I go to "nominatim.openstreetmap.org" and search for "shop near bangalore" I see two results - "Govt fair price shop" and "Govt Kerosene retail shop". They were both tagged as "shop=convenience". Unfortunately, the mapper of both of these didn't agree to the licence change and so, although they're still found by Nominatim until its data updates, they're no longer on the map.

A quick search for "supermarket near bangalore" finds lots of hits, though, such as this one, tagged as "shop=supermarket". If you're looking for grocery stores you'll need to think about how people might have tagged them, and perhaps use the XAPI or Overpass to search for e.g. "shop=*" within the area that you're interested in.

permanent link

answered 02 Aug '12, 12:53

SomeoneElse's gravatar image

SomeoneElse ♦
32.0k63330748
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×549
×419
×269
×46

question asked: 02 Aug '12, 07:53

question was seen: 5,869 times

last updated: 19 Dec '12, 16:40

powered by OSQA