Address Management

Pre-requisite:

  • The user has to be signed in to perform the following operations.
  • The user should have an active pro-monitoring plan activated on the space.

Getting the states in the USA

To get a list of state in the USA, The following method can be used:

  • spaceId (required): The space ID of the User.
Factory.spaceService.getUSAStates(spaceId: String) -> IVPublisher<[StateModel]>

Getting TimeZones in USA

To get a list of timezones in the USA, The following method can be used:

  • spaceId (required): The space ID of the User.
Factory.spaceService.getUSATimezones(spaceId: String) -> IVPublisher<[TimezoneModel]>

Getting TimeZone from Lat Long

To get a timezones for the lat long, The following method can be used:

  • spaceId (required): The space ID of the User.
  • latitude (required): The latitude of the location.
  • longitude (required): The longitude of the location.
  • queryItems : [.init(key: .latitude, value: .equal(value: latitude)), .init(key: .longitude, value: .equal(value: longitude)), .init(key: .timestamp, value: .equal(value: “(timeStamp)”))]
Factory.spaceService.getTimezone(spaceId: String, queryItems: [QueryItem]) -> IVPublisher<TimezoneModel>