[OSM-dev] JXAPI Polygon Query Support

Ian Dees ian.dees at gmail.com
Sat Aug 13 22:11:22 BST 2011

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:


On Sat, Aug 13, 2011 at 3:05 PM, Ian Dees <ian.dees at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110813/e072daaf/attachment.html>

More information about the dev mailing list