Skip to content

A GraphQL service to find the nearest tide prediction station and get predictions for the next few days.

License

Notifications You must be signed in to change notification settings

bdougherty/tide-predictions-graphql

Repository files navigation

tide-predictions-graphql

A GraphQL service to find the nearest tide prediction station and get predictions for the next few days.

It provides a simpler and more user-friendly API than the original NOAA API, in addition to geocoding capabilities.

Tide data powered by NOAA CO-OPS API. Water temperature data powered by USGS Instantaneous Values Web Service. Weather data powered by Dark Sky. Geocoding and reverse geocoding powered by OpenStreetMap Nominatim.

Usage

Deploy to your hosting provider, set the below environment variables, and start it with npm start.

Environment variables

Define the following environment variable:

  • APPLICATION - The name of your organization
  • ENABLE_GRAPHIQL - Set to "true" to enable the /graphiql endpoint
  • ACCESS_CONTROL_ALLOW_ORIGIN - The value to send in the Access-Control-Allow-Origin header
  • GEONAMES_USERNAME - https://geonames.org API username
  • IPDATA_API_KEY - API key for https://ipdata.co/
  • IPSTACK_API_KEY - API key for https://ipstack.com/
  • SENTRY_DSN - To enable reporting to Sentry (optional)
  • APOLLO_ENGINE - Apollo Engine API key (optional)

License

MIT © Brad Dougherty

About

A GraphQL service to find the nearest tide prediction station and get predictions for the next few days.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published