Versions in this module Expand all Collapse all v1 v1.0.0 Jul 4, 2026 Changes in this version + type AED struct + AEDImage string + Description string + LatitudeLongitude string + Name string + Private string + func (a AED) LatLng() (lat, lng float64, err error) + type AEDResponse struct + AEDs []AED + type AEDService struct + func (s *AEDService) LayerData(ctx context.Context, viewport, vrid string) (*AEDResponse, error) + func (s *AEDService) NearestForIncident(ctx context.Context, incidentID, vrid string) (*AEDResponse, error) + type APIError struct + Body []byte + Status string + StatusCode int + func AsAPIError(err error) (*APIError, bool) + func (e *APIError) Error() string + func (e *APIError) StatusResponse() (StatusResponse, bool) + type AgenciesResponse struct + Agencies []Agency + type AgenciesService struct + func (s *AgenciesService) Followed(ctx context.Context, deviceID string, opts *AgencySearchOptions) (*SearchAgenciesResponse, error) + func (s *AgenciesService) Get(ctx context.Context, id string, opts *AgencyOptions) (*Agency, error) + func (s *AgenciesService) GetByAgencyID(ctx context.Context, agencyIDs string, opts *AgencyOptions) (*AgenciesResponse, error) + func (s *AgenciesService) ListAll(ctx context.Context, opts *AgencySearchOptions) (*SearchAgenciesResponse, error) + func (s *AgenciesService) Search(ctx context.Context, token string, opts *AgencySearchOptions) (*SearchAgenciesResponse, error) + func (s *AgenciesService) Selected(ctx context.Context, deviceID string, opts *AgencyOptions) (json.RawMessage, error) + func (s *AgenciesService) Shape(ctx context.Context, ogrFID string, opts *AgencyOptions) (*Geometry, error) + type Agency struct + AgencyDescription string + AgencyID string + AgencyImage string + AgencyInitials string + AgencyLatitude string + AgencyLongitude string + AgencyName string + AgencyType string + AgencyWebsite string + Boundary string + BoundaryCentroid string + CPROnly string + CitiesServed []CityServed + City string + Country string + DarkContextAgencyImage string + DarkContextSponsorImage string + Extra map[string]json.RawMessage + FacebookName string + HasStations string + HasUnitGroups string + HasUnitLegend string + ID string + InstagramName string + LightContextAgencyImage string + LightContextSponsorImage string + LinkedInName string + LiveRadio []RadioStream + LivestreamURL string + OGRFID string + PSAP string + PublicEmail string + ShortAgencyName string + SponsorImage string + State string + Status string + TestAgency string + Timezone string + TwitterName string + YouTubeURL string + func (a *Agency) UnmarshalJSON(data []byte) error + type AgencyOptions struct + GeoJSON bool + VRID string + type AgencySearchOptions struct + Sandbox bool + type AgencySearchResult struct + AgencyID string + Display1 string + Display2 string + ID string + Lat float64 + Lng float64 + Type string + type AvailableLayer struct + Image string + LocalizedName string + MinZoomLevel string + PinIcons []PinIcon + PinStyle string + Type string + ZPriority string + type AvailableLayersResponse struct + AvailableLayers []AvailableLayer + type CPRResponse struct + Incidents []json.RawMessage + type CPRService struct + func (s *CPRService) Active(ctx context.Context, deviceID string) (*CPRResponse, error) + func (s *CPRService) Respond(ctx context.Context, body any) (json.RawMessage, error) + type CityServed struct + City string + Country string + StateProv string + type Client struct + AED *AEDService + Agencies *AgenciesService + CPR *CPRService + Incidents *IncidentsService + Location *LocationService + MapLayers *MapLayersService + Notifications *NotificationsService + Responder *ResponderService + Settings *SettingsService + Surveys *SurveysService + Units *UnitsService + func NewClient(opts ...Option) (*Client, error) + func (c *Client) BaseURL() *url.URL + func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body, out any) error + type Geometry struct + Coordinates json.RawMessage + Type string + type Incident struct + AddressTruncated string + AgencyID string + CallReceivedDateTime string + CallType string + FullDisplayAddress string + ID string + IsShareable string + Latitude string + Longitude string + MedicalEmergencyDisplayAddress string + PublicLocation string + Unit []Unit + func (i Incident) LatLng() (lat, lng float64, err error) + type IncidentBuckets struct + Active []Incident + Alerts []Incident + Recent []Incident + type IncidentGetOptions struct + AgencyID string + VRID string + type IncidentListOptions struct + Both bool + VRID string + type IncidentsResponse struct + Incidents IncidentBuckets + type IncidentsService struct + func (s *IncidentsService) Get(ctx context.Context, id string, opts *IncidentGetOptions) (*Incident, error) + func (s *IncidentsService) List(ctx context.Context, agencyID string, opts *IncidentListOptions) (*IncidentsResponse, error) + type LocationService struct + func (s *LocationService) Get(ctx context.Context, deviceID string) (json.RawMessage, error) + func (s *LocationService) RegionStrings(ctx context.Context, lat, lng float64) (*RegionStringsResponse, error) + func (s *LocationService) Update(ctx context.Context, update LocationUpdate) (json.RawMessage, error) + type LocationUpdate struct + DeviceID string + Latitude float64 + Longitude float64 + type MapLayerOptions struct + AgencyID string + VRID string + Viewport string + type MapLayersService struct + func (s *MapLayersService) Available(ctx context.Context, vrid string) (*AvailableLayersResponse, error) + func (s *MapLayersService) Data(ctx context.Context, layers string, opts *MapLayerOptions) (json.RawMessage, error) + func (s *MapLayersService) Stations(ctx context.Context, agencyID, vrid string) (*StationsResponse, error) + type NotificationsService struct + func (s *NotificationsService) SendTestFCM(ctx context.Context, deviceID string, opts *TestFCMOptions) (json.RawMessage, error) + type Option func(*Client) error + func WithAPIKey(key string) Option + func WithBaseURL(raw string) Option + func WithBasicAuth(user, pass string) Option + func WithHTTPClient(hc *http.Client) Option + func WithUserAgent(ua string) Option + type PinIcon struct + ID string + PinImage string + RelativeOffset string + type RadioStream struct + Description string + Name string + URL string + type RegionStringsResponse struct + RegionStrings map[string]string + type ResponderService struct + func (s *ResponderService) RegisterVerified(ctx context.Context, body any) (json.RawMessage, error) + func (s *ResponderService) UpdateProfileImage(ctx context.Context, body any) (json.RawMessage, error) + type SearchAgenciesResponse struct + SearchAgencies []AgencySearchResult + type SettingsService struct + func (s *SettingsService) ApplicationStatus(ctx context.Context, body any) (json.RawMessage, error) + func (s *SettingsService) Get(ctx context.Context, deviceID string) (json.RawMessage, error) + func (s *SettingsService) GetApp(ctx context.Context, deviceID string) (json.RawMessage, error) + func (s *SettingsService) Update(ctx context.Context, body any) (json.RawMessage, error) + func (s *SettingsService) UpdateApp(ctx context.Context, deviceID string, body any) (json.RawMessage, error) + type Station struct + AgencyID string + Attachments json.RawMessage + ID string + Icon string + Info json.RawMessage + ItemID string + ItemName string + LatitudeLongitude string + OtherMetadata json.RawMessage + SortKey string + func (st Station) LatLng() (lat, lng float64, err error) + type StationsResponse struct + Layers struct{ ... } + type StatusResponse struct + StatusCode string + StatusDescription string + type SurveysService struct + func (s *SurveysService) Clear(ctx context.Context, deviceID string) (json.RawMessage, error) + func (s *SurveysService) Get(ctx context.Context, deviceID string) (json.RawMessage, error) + type TestFCMOptions struct + DryRun bool + Type string + type Unit struct + DispatchStatus string + UnitID string + type UnitGroup struct + AgencyID string + GroupID int + GroupLabel string + ResponderHasOverlappingTags bool + Restricted bool + SortOrder int + Tags []json.RawMessage + Units []string + type UnitGroupSubscriptions struct + Groups []json.RawMessage + OnDuty bool + SendAsCritical bool + type UnitGroupsResponse struct + Groups []UnitGroup + type UnitLegendEntry struct + Description string + Link string + UnitKey string + type UnitLegendResponse struct + UnitLegend []UnitLegendEntry + type UnitsService struct + func (s *UnitsService) GetSubscriptions(ctx context.Context, deviceID string) (*UnitGroupSubscriptions, error) + func (s *UnitsService) Groups(ctx context.Context, agencyIDs, token string) (*UnitGroupsResponse, error) + func (s *UnitsService) Legend(ctx context.Context, agencyID string) (*UnitLegendResponse, error) + func (s *UnitsService) UpdateSubscriptions(ctx context.Context, body any) (json.RawMessage, error)