DeepZoom scripting
    Preparing search index...

    Function tideOrCurrent

    • Select a tide or current station based on the location and station type.

      The station of the given type which is nearest the geographic location specified will be selected.

      Parameters

      • json: { location: { lat: number; lng: number }; type: string } = ...
        • location: { lat: number; lng: number }
        • type: string

          string "tide | current"

      Returns void

      // Show currents for Yokeko Point
      {
      "location": {
      "lat": 48.41272,
      "lng": -122.61317
      },
      "type": "current"
      }