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

I asked this here on stackoverflow. Basically I have an address in New York County, which is part of New York City, which is part of New York state. There is a similar address in Staten Island. I am looking for a way to specify New York County to the geocoder and not have it return similar addresses in the other 4 counties in New York City.

I believe the solution lies in the nominatim special phrases, However, I don't know how to use them.

asked 20 Jun '11, 20:28

Justin%20Dearing's gravatar image

Justin Dearing
26335
accept rate: 0%

edited 21 Jun '11, 13:54


On the Wiki page for Nominatim, there are descriptions for adding additional parameters to the query, including a bounding box, which will do what you're asking about geographically focusing a query.

permanent link

answered 20 Jun '11, 21:53

emacsen's gravatar image

emacsen
1.2k1623
accept rate: 13%

While in theory a bounding box will work, I'd like to limit to a particular county. I could draw a bounding box for New York County pretty easily, but that would be hard as a general case.

(21 Jun '11, 13:44) Justin Dearing

There doesn't seem to be a query to do what you want, so my suggestion is to do one of three things:

1) (Simple) If your queries are infrequent, simply do a polygon filter after the results. OSM server are not meant for large scale general purpose use anyway.

2) (Complex) If you run a lot of queries and need a lot of very specific data, the right answer for you is to set up your own OSM instance restricted to the polygons you care about, and run your queries on your instance.

3) (Complex) You can add the feature to Nominatim. It's FLOSS. Patch it you may find the feature adopted upstream.

permanent link

answered 21 Jun '11, 16:42

emacsen's gravatar image

emacsen
1.2k1623
accept rate: 13%

Is their much success offering bounties for features in Nominatim? In this case I'd rather pay someone else to implement the feature.

(21 Jun '11, 17:47) Justin Dearing

You can try, but generally OSM doesn't do "bounties" in that sense. Companies do hire OSM developers (MapQuest pays the Nominatim developer), but not always to work on OSM related activity. You can always get on the mailing lists and try, but I'd be surprised if people took you up on it for anything less than professional rate. The second solution of a custom instance would likely be the cheapest solution to your problem in that case.

(21 Jun '11, 18:27) emacsen

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:

×689
×133
×5

question asked: 20 Jun '11, 20:28

question was seen: 6,164 times

last updated: 21 Jun '11, 18:28

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