pretty new to Geo-Informatics so do not bear with me if my questions sound like newbie-questions: can i do some requests on POIs of Openstreetmap with XAPI. doing like so: i send a request to the API-Server - over http as a respond i get the following result - in XML example: the following link gives back all the Nodes of the Type amenity=restaurant in XML-Format.Note: the bounding box (bbox) limits the area:
see here the results:_
well this example does not work here... what do ido wrong By the way. How to get the results stored in a databasse- note i have to convert the xml to a db-sheme.. mysql is preferred- any idea and helping hand is greatly appreciated asked 17 Apr '12, 22:44 tagtheworld |
Although this page doesn't explicitly say where xapi.opentreetmap.org points to these days, it does say that jxapi.openstreetmap.org (which it might point to) is down for maintenance right now. However, Mapquests's jxapi instance should be up, so you should be able to do that. I've just tried this:
and it works. Note that there's an extra "/api" in the Mapquest xapi URL. The bbox is currently limited to 10 square degrees. See the various links from the XAPI wiki page for more info, including the terms of service for the Mapquest instance of the XAPI. answered 18 Apr '12, 00:15 SomeoneElse ♦ many many thx
(18 Apr '12, 01:47)
tagtheworld
By the way. How to get the results stored in a databasse- note i have to convert the xml to a db-sheme.. mysql is preferred- any idea and helping hand is greatly appreciated
(18 Apr '12, 07:21)
tagtheworld
I tried this and it ran. I am such a newbie that I have no idea where the results ended up. On my PC somewhere? Would appreciate help.
(31 Jul '13, 16:54)
walkergeoff
It'll be on your PC, wherever you ran it from. I've just run it from the command line in the c:\temp folder and ended up with a file called "node[amenity=restaurant][bbox=9.4908142,48.7810801,9.5660019,48.8387351]" in there, so I'd loke for files with e.g. 7810801 in them.
(31 Jul '13, 17:00)
SomeoneElse ♦
|