This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Distance from point (lat,lon) to map region (shape for example)

1

Good evening guys,

Suppose I have a point on map (latitude, longitude), I would like to determine the distance from a region of the same map (for example a rectangle with four lat-lon vertices or a shape with lat,lon center point and radius) how can do that? There is some formula or some plugin that allows me to do it in java?

Thanks a lot

asked 11 Jan '16, 15:19

giacomo-keybiz's gravatar image

giacomo-keybiz
33101013
accept rate: 0%

1

I recommend to ask such a general GIS question at a better place:

http://gis.stackexchange.com

(11 Jan '16, 17:26) stephan75
1

Yes, this question is unsuitable for the OSM help site. You might want to use the JTS library but GIS stackexchange is the way to go.

(11 Jan '16, 17:43) Frederik Ramm ♦

Source code available on GitHub .