module MetofficeDatapoint::Api::MapOverlayMethods
Public: Wrapper class around the Met Office DataPoint API endpoints
Public Instance Methods
forecast_layer()
click to toggle source
Public: Returns when the forecast layers were issued, time steps available, and the URIs of the layers in PNG format. API updates hourly.
Returns a Hash.
# File lib/metoffice_datapoint/api/map_overlay_methods.rb, line 11 def forecast_layer query('layer/wxfcs/all/json/capabilities') end
observation_layer()
click to toggle source
Public: Returns when the observation layers were issued, time steps available, and the URIs of the layers in PNG format. API updates every 15 minutes.
Returns a Hash.
# File lib/metoffice_datapoint/api/map_overlay_methods.rb, line 19 def observation_layer query('layer/wxobs/all/json/capabilities') end
Private Instance Methods
query(path)
click to toggle source
# File lib/metoffice_datapoint/api/map_overlay_methods.rb, line 25 def query(path) Oj.load(get(path)) end