Just to be clear, you don't have to use Google's page to encode the polyline. I only referenced it here because it is a good implementation of the Douglas-Peucker line encoding algorithm. Feel free to implement the algorithm yourself as described here:
http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html On Sat, Aug 13, 2011 at 3:05 PM, Ian Dees <[email protected]> wrote: > Hi all, > > I just pushed a change to jxapi.osm.org to support polygon-based data > queries. > > Basically, encode your polygon with Google's encoder utility [0] and > replace any bbox=? XAPI predicate with a poly=? predicate with the encoded > string on the right side. > > Let me know if you run into any bugs or problems. Happy Saturday! > Ian > > [0] > http://code.google.com/apis/maps/documentation/utilities/polylineutility.html >
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

