The Nominatim wiki page links to a page of special phrases that apparently can be used as part of a query. It doesn't clearly explain how to use these phrases. So how would I for example search for JFK airport, or search for an address in a specific county with these special phrases? asked 21 Jun '11, 13:51 Justin Dearing |
The phrases are used to search for other tags then the name tag. If you search for "airports in New York" you would get JFK, LaGuardia and Albany because they are airports (amenity=airport) in New York. It is used to better understand search terms and allows you to find e.g. "Hospitals near Central Park, New York" and get results even though none of them have the term "Hospital" in the name. It also allows for multilingual search. answered 21 Jun '11, 17:21 Gnonthgol ♦ So for address lookup input, you enter the values of the phrases freeform, like you do for regular address elements? Is their a methodology outside of the nominatim api where you can query a special phrases more specifically?
(21 Jun '11, 17:42)
Justin Dearing
The nominatim special phrases are for better interaction with humens. What you want is probably more in the lines of the Xapi.
(21 Jun '11, 21:20)
Gnonthgol ♦
|
The "special phrases" described on the page you link are meant for manually entering queries (either on the Nominatim main page itself, or on the main OSM page, which also uses Nominatim). They can be used to find objects of certain types (by searching for certain tags). Without them, you could only search objects by name, which does not allow things like searching for all hospitals or churches in a city.
Not at all :-). If you are looking for one specific objects, and you know its name, you don't need special phrases. Just use a normal search, which will automatically search by name. answered 22 Jun '11, 11:34 sleske |