skattela / HelloV2XWorld-iOS

This application is designed to help developers quickly get started with using our V2X SDK. By cloning this simple app, you can see how easy it is to integrate our V2X SDK into your own mobile projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HelloV2XWorld-iOS

In this repository you can find an example of V2X application that show how to use the V2X-SDK in a ready to use iOS Application.

Description

The HelloV2XWorld application demonstrates how easy it is to create a V2X application and exchange V2X messages with other road users. This application is powered by the V2X-SDK and the STEP platform developed by Vodafone. By cloning this project you will be able to create and execute your first V2X application in less than 15 minutes. The HelloV2XWorld application shows a map with all the road users close to your location. You can also use this application as a model to start developing your own application.

Getting Started

Prerequisites

  • Xcode version 14.1 or higher is already installed on your MacBook.
  • You have some experience with developing apps using swift and swiftUI.
  • You have a tool pre-installed for unarchiving RAR or Zip files like "The Unarchiver".
  • Your Internet connectivity is up and running.
  • You are available for 15 minutes.

Download the V2X-SDK library for iOS

step1 (1)

step2

* Enter your PinCode:

Screenshot 2023-02-16 at 11 46 58 AM

  • Navigate to the page "Documentation" and select the "SDK documentation for iOS" option.

sdkiOS

  • In the "SDK documentation for iOS" page.
    • click on the "Download SDK" button for the SDK xcframework.
    • click on the "Download documentation" button for the SDK documentation and user guide.

downloadSDKiOS (1)

=> Your browser downloads the archive "VodafoneV2X_iOS_SDK.rar".

  • Open the archive, extract the V2X-SDK library file called "VodafoneV2X.xcframework" and save it on your laptop.

Clone the HelloV2XWorld Application

Screenshot 2023-02-15 at 4 45 10 PM

  • Press "Clone" button to start downloading the HelloV2XWorld project.
  • Wait until the completion of this operation.
  • Choose "main" branch from the popup then press "Clone" then desired save location on you MacBook.

Import the V2X-SDK library in your project

  • After opening the HelloV2XWorld project.
  • Go to xcodproj settings page "General".
  • Scroll down to "Frameworks" and click on the "+" sign.

Screenshot 2023-02-15 at 5 09 18 PM

* Choose "Add Others" then "Add Files" and select to add the pre-downloaded "VodafoneV2X.xcframework".

Screenshot 2023-02-15 at 5 13 50 PM

Build the HelloV2XWorld application

  • Click from Xcode tab bar "Product" then "Build" (or use the shortcut "Command⌘ B").

Run the HelloV2XWorld application

  • You can run the app on any iOS Simulator or real device after providing your own Development provision profile.
  • Select your iOS Simulator (for ex. iPhone 14.)
  • Press the RUN button.
  • Wait until the "Simulator" windows appears.

Screenshot 2023-02-15 at 5 21 14 PM

  • When the App opens, read the Term and Conditions, Click on the next button to navigate till the end then click on the "Accept" button.

Screenshot 2023-02-15 at 5 22 38 PM

  • Accept the location permissions to provide your own location data.

Screenshot 2023-02-15 at 5 24 14 PM

  • A map is displayed centered on your current location.

Screenshot 2023-02-15 at 5 25 28 PM

  • The blue icon represents yourself.
  • The red icons represents the other road users close to you.

Screenshot 2023-02-15 at 5 26 58 PM

  • When clicking on the blue icon, app displays you ITS information: StationID, StationType, Speed, Heading.

Screenshot 2023-02-15 at 5 28 08 PM

  • When clicking on any red icon, app displays you the CAM information: StationID, StationType, Speed, Heading.

Screenshot 2023-02-15 at 5 29 30 PM

  • You can change your station type by accessing the setting page

Screenshot 2023-02-15 at 5 29 38 PM

Version History

  • 1.0
    • Initial Release

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

This application is designed to help developers quickly get started with using our V2X SDK. By cloning this simple app, you can see how easy it is to integrate our V2X SDK into your own mobile projects.

License:MIT License


Languages

Language:Swift 100.0%