Given a point coordinates(latitude/longitude) and an array of latitude/longitude representing a polygon. How do I get the distance from the point to the polygon, using OpenMap API?
Asked
Active
Viewed 867 times
1
-
I was planning to convert latitude/longitude to x/y coordinates and use JTS(java geometry api) to calculate the distance. So far I couldn't find much documentation in OpenMap API. I'm still not used to the API. – user1296137 Mar 27 '12 at 17:02
-
do you know anything about the polygones, are they all concave/convex? Do you know if a point has an edge to it's nearest 2 neighbours? Those things are to be considered! – Bondax Mar 27 '12 at 17:43
-
1There can be concave or convex polygons, and the point may be anywhere. That's one of the reasons I'm looking for an API to do the job. – user1296137 Mar 27 '12 at 18:05