[GIS] Does the Bing Maps API have a distance to coast service

bing-mapsdistance

Does the Bing API contain a distance to coast service from an address? All we need to do is calculate the distance to a major coastline (Atlantic or Gulf of Mexico).

Best Answer

I know this is an old question, but there is now a Distance to Coast REST API: http://www.kbgeo.com. Given a latitude and longitude it returns the distance to the nearest coastal point and what that point is. JSON response:

{
  "distanceInMiles": 702.4893212372758,
  "targetPoint": {
    "lat": 43.045583,
    "lng": -89.3799951
  },
  "coastlinePoint": {
    "lat": 38.662389,
    "lng": -77.236111
  }
}

There's a live demo page at http://demo.kbgeo.com.

Disclosure: I wrote this API and therefore have a vested interest. However, it does match OP's needs. Another API that does the same thing is maprisk.com.