NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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, but i don't know how it can use , i tried to give like,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

accept rate: 0%

edited 02 Aug '12, 09:11

SomeoneElse's gravatar image

SomeoneElse ♦


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:

or in XML format

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

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=";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

@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[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 "" 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 ♦
accept rate: 16%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 02 Aug '12, 07:53

question was seen: 8,930 times

last updated: 19 Dec '12, 16:40

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum