[OSM-dev] How to use XAPI
Hi all My next project is an XAPI map. You can see a prototype at: http://www.khtml.org/osm/v0.76/examples/xapi.html It is possible to make a global search for power_source=nuclear But a global search for amenity=restaurant would bring too much results and it would produce too much load for the db. My question: Is there a possiblity to bring this feature to the normal users? Is there an undocumented limit parameter to reduce the output to a maximum number of results? Any other ideas how to enable this feature? Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Op 15-08-10 16:31, bernhard zwischenbrugger schreef: Hi all My next project is an XAPI map. You can see a prototype at: http://www.khtml.org/osm/v0.76/examples/xapi.html It is possible to make a global search for power_source=nuclear But a global search for amenity=restaurant would bring too much results and it would produce too much load for the db. My question: Is there a possiblity to bring this feature to the normal users? Is there an undocumented limit parameter to reduce the output to a maximum number of results? Any other ideas how to enable this feature? Using the default XAPI you can also bbox the request :) bbox it to 110% of the viewport at a certain zoomlevel and you probably have a winner. Stefan -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREKAAYFAkxn/tQACgkQYH1+F2Rqwn0WwACdGZpD5XCMreQcCpr4GD4Tqdwl W0YAnRQDyrXMjbAcr2JeJqzh7yXNemrY =GJoI -END PGP SIGNATURE- ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
My question: Is there a possiblity to bring this feature to the normal users? Is there an undocumented limit parameter to reduce the output to a maximum number of results? Any other ideas how to enable this feature? Using the default XAPI you can also bbox the request :) bbox it to 110% of the viewport at a certain zoomlevel and you probably have a winner. bbox is implemented in my prototype. bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
Am 15.08.10 17:14, schrieb Roeland Douma: You could only allow for the query on high zoom leves. Since what good is an overlay of all restaurants on zoomlevel 11? That's the point! A level 11 restaurant search in Europe does not make much sense. But if I plan a bicycle trip in Laos it's very different. (I was very hungry in Laos) For a motorbike trip in Cambodia a level 8 search for tourism=hotel|guest_house gives usefull informations. If the querys for low zoomlevels are disabled the tool makes not much sense. If the querys are not disabled, the db can't handle the querys. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
On Sun, Aug 15, 2010 at 5:01 PM, bernhard zwischenbrugger b...@datenkueche.com wrote: Am 15.08.10 17:14, schrieb Roeland Douma: You could only allow for the query on high zoom leves. Since what good is an overlay of all restaurants on zoomlevel 11? That's the point! A level 11 restaurant search in Europe does not make much sense. But if I plan a bicycle trip in Laos it's very different. (I was very hungry in Laos) For a motorbike trip in Cambodia a level 8 search for tourism=hotel|guest_house gives usefull informations. If the querys for low zoomlevels are disabled the tool makes not much sense. If the querys are not disabled, the db can't handle the querys. XAPI does not use zoom level as a limit. Any query is permitted. There is a limit of 1 million elements for most queries. There's also some heuristics which prevent silly queries. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
On Sun, Aug 15, 2010 at 8:57 PM, 80n 80n...@gmail.com wrote: On Sun, Aug 15, 2010 at 5:01 PM, bernhard zwischenbrugger b...@datenkueche.com wrote: Am 15.08.10 17:14, schrieb Roeland Douma: You could only allow for the query on high zoom leves. Since what good is an overlay of all restaurants on zoomlevel 11? That's the point! A level 11 restaurant search in Europe does not make much sense. But if I plan a bicycle trip in Laos it's very different. (I was very hungry in Laos) For a motorbike trip in Cambodia a level 8 search for tourism=hotel|guest_house gives usefull informations. If the querys for low zoomlevels are disabled the tool makes not much sense. If the querys are not disabled, the db can't handle the querys. XAPI does not use zoom level as a limit. Any query is permitted. There is a limit of 1 million elements for most queries. There's also some heuristics which prevent silly queries. Sorry, that limit is 10 million elements. 1 million would be a bit mean. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev