Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps distance to sea coast

Tags:

Given just one point in Google Maps, is there anyway to know the distance to the nearest point in the coast (that is the minimun distance to the sea), and which point in the coast it is?

Thanks in advance.

like image 689
Jesús Avatar asked Mar 09 '10 11:03

Jesús


People also ask

How do I get nautical miles on Google Maps?

Simply click once on one point, then click again on the second point. The distance should then be displayed. You can click more than two points in order to build up a continuous route. Use the miles / km / nautical miles / yards switch to measure distances in km or in miles or nautical miles.

Can I Measure distance on Google Maps?

When using Google Maps in a desktop web browser, right-click the city or starting point you want to use and select “Measure distance” from the menu. Next, click the second point on the map to see the direct distance in miles and kilometers displayed in a small box at the bottom of the window.

How do you calculate square miles on a map?

Right-click on the map at your starting point and choose the Measure distance option. Add points around the location's boundary. Once you close the shape by clicking on the starting point, the Google Maps area calculator will automatically process the area of your shape.


1 Answers

There is no documented method in the Google Maps API that will return the distance to the coast.

However, you may want to check out the following article:

  • Bill Chadwick's Google Maps API Demos (scroll to Distance Point to Polyline or Polygon)

The author describes a "point-to-polyline distance" function that was used with the GSHHS1 dataset to find out how far a point is to the sea.


1 GSHHS is a high-resolution shoreline data set amalgamated from two databases in the public domain. The data have undergone extensive processing and are free of internal inconsistencies such as erratic points and crossing segments. The shorelines are constructed entirely from hierarchically arranged closed polygons. The data can be used to simplify data searches and data selections, or to study the statistical characteristics of shorelines and land-masses. It comes with access software and routines to facilitate decimation based on a standard line-reduction algorithm.

like image 131
Daniel Vassallo Avatar answered Sep 23 '22 01:09

Daniel Vassallo