> > I'm buried in other code at the moment so don't have time to dig for an > answer, > so can someone point me in the right direction to get a 'search result' via > the > API for looking up a location. > > I know I can go via the website, but I need to be able to search for > http://www.openstreetmap.org/browse/node/515065315 but using the 'McMurdo > Station' name. I am expecting that I'll get several results at times, so the > node/way number will be used eventually, but initial search to give a list to > select from would be helpful.
OSM uses Nominatim. The wiki contains a guide to the seach API: http://wiki.openstreetmap.org/wiki/Nominatim >From which you can get answers in html, xml or json formats. In at least the XML sample, the osm_id is returned within the results. HTH. -- Be Seeing You - Rob. If at first you don't succeed, then skydiving isn't for you.
_______________________________________________ Talk-GB mailing list Talk-GB@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk-gb