MapSearch

public class MapSearch : Codable

Structure used for searching your maps. All fields are optional. When multiple fields are set the search condition is logically ANDed, returning a smaller list of maps.

  • The map name to search for. The search is case insensitive and will match and map that’s name included the search name.

    Declaration

    Swift

    public var name: String?
  • The location to search for maps in. Maps without location data will not be returned if this is set.

    Declaration

    Swift

    public var location: LibPlacenote.MapLocationSearch?
  • Only return maps newer than this (in milliseconds since EPOCH). Value ‘0’ disable this constraint.

    Declaration

    Swift

    public var newerThan: Double
  • Only return maps older than this (in milliseconds since EPOCH). Value ‘0’ disable this constraint.

    Declaration

    Swift

    public var olderThan: Double
  • Filter maps based on this query, which is run via json-query: https://www.npmjs.com/package/json-query The filter will match if the query return a valid.

    For a simple example, to match only maps that have a ‘shapeList’ in the userdata object, simply pass ‘shapeList’.

    For other help, contact us on Slack.

    Declaration

    Swift

    public var userdataQuery: String?
  • Helper function for setting newerThan via a DateTime

    Declaration

    Swift

    public func setNewerThan(dt: Date)
  • Helper function for setting olderThan via a DateTime

    Declaration

    Swift

    public func setOlderThan(dt: Date)