enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Google Maps distance to sea coast - Stack Overflow

    stackoverflow.com/questions/2408554

    I know this is a 7-year old question, but there is now a Distance to Coast REST API: https://www.kbgeo.com. It returns exactly what the OP requested - distance to the nearest coastal point and what that point is. JSON response:

  3. So the minimum distance is ~305.2km. Finally, note that your coastline file has all the coastlines of the world, so this is the minimum distance to some coastline, not necessarily the Spanish coast (although in this case it does turn out to be on the northern coast of Spain). If your reference point was very near the border with Portugal, the ...

  4. Calculate distance to shore or coastline for a vessel

    stackoverflow.com/questions/45440700

    The key here is that you need to use the "great circle" (orthodromic) distance calculations, which are designed to find the distance between two points on the surface of a sphere. Although the earth is not a perfect sphere, such calculations will get you very close (to within 0.5%), and non-spherical adjustments can be applied if this isn't ...

  5. For distance calculate each route point given by JSON/XML data, as for displacement there is a built-in solution using Spherical class //calculates distance between two points in km's function calcDistance(p1, p2) { return (google.maps.geometry.spherical.computeDistanceBetween(p1, p2) / 1000).toFixed(2); }

  6. R measuring distance from a coastline - Stack Overflow

    stackoverflow.com/questions/51837454

    Distance to the coastline can be calculated by downloading openstreetmap coastline data. You can then use geosphere::dist2Line to get the distance from your points to the coastline.

  7. Point_ID Latitude Longitude Distance_m 1 46.27789 9.87763 2 46.27366 9.87701 3 46.27565 9.88045 4 46.27600 9.87822 Point with ID #1 should be the reference point. The linear distance between point #1 to all the other points is my wished result. I tried several versions like:

  8. import numpy as np def Haversine(lat1,lon1,lat2,lon2, **kwarg): """ This uses the ‘haversine’ formula to calculate the great-circle distance between two points – that is, the shortest distance over the earth’s surface – giving an ‘as-the-crow-flies’ distance between the points (ignoring any hills they fly over, of course!).

  9. Ludovico, as I explained in response to your messages at kbgeo.com and my personal website, KB Geo Distance to Coast calculates distance from a point on land to the nearest sea coast. It does not calculate distance from a point in the water to the nearest land. This is not a bug - it's the way the product is designed.

  10. Look for haversine with Google; here is my solution: #include <math.h> #include "haversine.h" #define d2r (M_PI / 180.0) //calculate haversine distance for linear ...

  11. I'd be inclined to put all the points into a single spatialPoints object (let's call it MAD again for convenience), then transform that to MAD.proj, then do this: sapply(1:length(MAD.proj),function(i)gDistance(MAD.proj[i],coast.proj)). This will produce a vector of distances from each point to the nearest coast. –