MAAS v1.0.0 Maas

This package (and module) is a thin wrapper around the MAAS (Mars Atmospheric Aggregation System) API. The API consists of two endpoints, latest/0, and archive/1, which (quite obviously) return the latest weather report, and a paginated list of old weather reports.

For more information, visit the MAAS website.

Summary

Functions

Calls the MAAS API and returns a map with count and results. results is a list of %Maas.Report{} structs

Calls the MAAS API and returns a %Maas.Report{} struct, containing the latest Mars weather report

Functions

archive(params \\ [])

Specs

archive([]) :: %{count: non_neg_integer, results: [Maas.Report.t]}

Calls the MAAS API and returns a map with count and results. results is a list of %Maas.Report{} structs.

archive/1 can also be called by passing parameters, to filter out results.

These filters are most of the reports’ fields, but visit the MAAS website for more information.

latest()

Specs

latest :: Maas.Report.t

Calls the MAAS API and returns a %Maas.Report{} struct, containing the latest Mars weather report.