On Sun, Dec 20, 2009 at 3:43 PM, Laurence Penney <span dir="ltr"><<a href="mailto:lorp@lorp.org">lorp@lorp.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks... seems a little wasteful to have to get all the individual<br>
nodes and tags. Is this the only way to get the bbox of a given way<br>
without one's own planet db?<br></blockquote><div><br>How does <a href="http://www.openstreetmap.org/browse/relation/#">http://www.openstreetmap.org/browse/relation/#</a> do it? Considering how long it took to load <a href="http://www.openstreetmap.org/browse/relation/62899">http://www.openstreetmap.org/browse/relation/62899</a>, I'm guessing it downloads the entire relation and uses javascript to calculate the bbox and draw the relation. Pretty inefficient, but looking at the database schema (<a href="http://wiki.openstreetmap.org/wiki/Database_schema">http://wiki.openstreetmap.org/wiki/Database_schema</a>), that information doesn't even seem to be cached in the db, so it's something that has to be recalculated every single time by someone - just a matter of whether to waste bandwidth or CPU.<br>
<br>I'd say if this is something you're going to be doing a lot of, it's probably best to download the whole planet (or the part of it you're working on). For the sake of not overloading the API as much as for making things easier on your end.<br>
</div></div>