Find Close Tide Locations

  • 1
  • Question
  • Updated 3 years ago
Am I able to retrieve a number of tidal locations which are closest to a specific location? The current Tide query returns the closest tidal location automatically, but sometimes that location only returns Current data instead of Tidal data (the difference being speed of the current and height of the tide). I want to be able to select the closest location that actually returns Tidal data only... is that possible?
Photo of Brian

Brian

  • 4 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Mike Gannon

Mike Gannon

  • 3 Posts
  • 0 Reply Likes
did you figure this out? I'm having a similar issue.
Photo of Brian

Brian

  • 4 Posts
  • 0 Reply Likes
I believe we received the response then cycled through each station to find one that provided the right info (the difference in the data being speed (knots) vs height (feet)). I'll look through our code to double check exactly where.
Photo of Mike Gannon

Mike Gannon

  • 3 Posts
  • 0 Reply Likes
How did you cycle through the stations? I'm trying to draw data from a different "tideSite" than the one that shows up by default for my zipcode.  This is my url:

http://api.wunderground.com/api/API_KEY/tide/q/MA/chatham.json

This returns data for "tideSite":"Chatham, Cape Cod, Massachusetts". What I want is the data from the  nearby station "tideSite":"Chatham Harbor, Aunt Lydias Cove, Cape Cod, Massachusetts"
Photo of Brian

Brian

  • 4 Posts
  • 0 Reply Likes
Sorry Mike, turns out we went with a custom tide provider, not WU's. We still use them for the weather though.