Latest 1.3.2
Homepage https://github.com/CanalTP/NavitiaSDK_ios
License GPLv3
Platforms ios 8.0
Authors

NavitiaSDK for iOS

This SDK helps you to use Navitia transport API in an iOS application.

Installation

Using cocoapods

Install Cocoapods

brew install cocoapods

Create a podfile

platform :ios, '9.0'
use_frameworks!

target 'MyAwesomeApp' do
    pod 'NavitiaSDK', '~> 0.3'
end

Important: NavitiaSDK is not compatible yet with iOS platform >= 11.0. Please use platform version 10.3 or lower

And execute the following command:

pod install

Getting started

Please follow the installation instructions first.
To use NavitiaSDK classes, you have to import the NavitiaSDK module

import NavitiaSDK

Init the SDK

let navitiaSDK = NavitiaSDK(configuration: NavitiaConfiguration(token: "my-token"))

Building requests

This example show how to retrieve journeys between to lonlat coords.

navitiaSDK.journeysApi.newJourneyRequestBuilder()
    .withFrom("2.38;48.84")
    .withTo("2.29;48.82")
    .get { (result, error) in
        if result != nil {
            let journeys = result!.journeys
        }
    }

Latest podspec

{
    "name": "NavitiaSDK",
    "version": "1.3.2",
    "summary": "Navitia client written in Swift 5",
    "description": "Navitia client",
    "homepage": "https://github.com/CanalTP/NavitiaSDK_ios",
    "license": {
        "type": "GPLv3",
        "file": "LICENSE.md"
    },
    "authors": {
        "Kisio Digital": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CanalTP/NavitiaSDK_ios.git",
        "tag": "1.3.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "NavitiaSDK/Classes/**/*.swift",
        "NavitiaSDK/Classes/**/*.h"
    ]
}

Pin It on Pinterest

Share This