> Does the script also take boundaries in relations into account? I'm a > little puzzled by > <http://dev.openstreetmap.org/~ojw/WhatCountry/?lat=42.8145&lon=20.365> > which is inside Kosovo with two relations as border, > Србија, admin_level 2, which is seen > and Kosovo, admin_level 3, which is not seen. > > Two boundary relations is also the way to map the Australian example.
Basicallly, the OSM3S takes into account any relation that has a tag with key "admin_level" (no matter what value) and "name" (no matter what value). Then it tries to make one or several polygons from the way members of the relation. If the way members constitute proper polygons, an area is made from these. The tagging of the ways doesn't matter. If not, you can spot the problems by a query like <id-query type="relation" ref="53295"/> <report/> Just send this by a post request like wget -O - --post-data="<id-query type=\"relation\" ref=\"53295\"/><report/>" http://78.46.81.38/api/interpreter or just paste the query in an arbitrary form on http://78.46.81.38/ Concerning the Kosovo example, there is something odd at http://www.openstreetmap.org/?lat=42.8362124&lon=20.3513993&zoom=16 and http://www.openstreetmap.org/?lat=42.8362313&lon=20.351468&zoom=16 Concerning Australia, a query like <coord-query lat="-34.7758269" lon="149.6918631"/> <print mode="body"/> does find relation 80500 which represents Australia. So please specify where in Australia the script fails. Then I'll try to fix it as fast as possible. Cheers, Roland _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk