OpenParking Documentation Beta

Structures

Coordinates

A set of WGS84 coordinates used to specify a location.

Data​Point

A collection of lot data point that were collected together.

Geo​Json
Geo​Json.​Feature
Geo​Json.​Feature.​Geometry
Lot

A place where cars can be left to do whatever cars do when no one's around.

Lot.​Pricing
Lot.​Opening​Hours
Warning

Enumerations

Date​Format

Pre-defined date format values for use with String.date(withFormat:).

Open​Parking​Error

A general error type indicating failure during the loading or decoding of data.

Lot​Error

An error indicating that aggregating of data for a specific lot has failed. This is primary for use in LotResult.

Lot.​Available
Lot.​State
Lot.​Lot​Type

Protocols

Datasource

Typealiases

Lot​Result

Functions

get(url:​headers:​session:​completion:​)

Send an asynchronous GET request to a specified URL with optional headers.

get(url:​headers:​session:​)

Send a synchronous GET request to a specified URL with optional headers. Encountered errors will be thrown directly.

post(url:​headers:​body:​session:​completion:​)

Send an asynchronous POST request to a specified URL with optional headers and body.

post(url:​headers:​body:​session:​)

Send a synchronous POST request to a specified URL with optional headers and body. Encountered errors will be thrown directly.

warning(_:​lot​Name:​source:​)

Send a warning upstream that there is a potential incosistency in the data that should be investigated but was not severe enough to stop data collection for this lot.