Swiftpack.co - yageek/StrasbourgParkAPI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yageek.
yageek/StrasbourgParkAPI 4.0.1
:parking: A simple swift package used to access the Strasbourg open data related to the parking
⭐️ 0
🕓 2 weeks ago
.package(url: "https://github.com/yageek/StrasbourgParkAPI.git", from: "4.0.1")


A simple swift package giving access to the Strasbourg open data for parking (location API and availability API)

Reference can be found here.


You can interact with the framework using callback closures responses, Combine or async methods

Callback closures

let client = ParkingAPIClient()
client.getLocations { (result) in
    switch result {
        case .success(let locations):
            print("Locations: \(locations)")
        case .failure(let error):
            print("Error during the download: \(error)")


let client = ParkingAPIClient()
client.getLocationsPublisher().sink { result in
    if case .failure(let error) = result {
        print("Error: \(result)")
} receiveValue: { result in
    print("Response: \(result)")



let client = ParkingAPIClient()

do {
    let response = try await client.fetchLocations()
    print("Response: \(response)")
} catch let error {
    print("Error: \(error)")


Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Release Notes

4.0.0 (Combine + Async)
31 weeks ago


  • Add Combine API methods
  • Add Swift async methods
  • Use ParkingAPIClient error failure type everywhere for more cohesion

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics