This is the front end iOS app for the Northstar project. It communicates with the backend Northstar cloud to predict wildfires, send alerts and route users to safe locations. In its current state, the app demonstrates the following functionality:
- alerts for wildfire danger and directions to safety
- exploration of and navigation to safe zones near your location
- exploration of potential fire hazards near your location
The app makes internal calls to the backend. Our current integration allows recieving an image of the wildfire using the GRPC protocol. Due to the effort required to setup a local server, the integration has been disabled for this demo. Instead, backend calls are mimicked in the front end. There are also other integrations that are yet to be implemented.
- Mac OS Mojave (v10.14.5)
- XCode App (v10.2.1)
- Clone this repository
- Navigate to the repository in your terminal
- Install Cocoapods
$ sudo gem install cocoapods
- Run Cocoapods to create or update the XCode Workspace file in the repository
$ pod repo update && pod install
- Open the resulting XCode Workspace file which will launch the XCode App
- Build and run the app, an iOS emulator should pop up
- In the iOS emulator, go to the Debug menu. Select Location > Custom Location ... and enter the following:
Latitude: 37.220818
Longitude: -121.782621
If you run into issues please email daxit.agarwal@ibm.com
Upon launch, the app focuses in on the user's current location. After ten seconds, an alert pops up alerting the user of a wildfire. In the final version of the app, this alert would trigger when the backend sends a response that there is a wildfire approaching the user's location (due to the current wind direction). Upon clicking "Start Navigation", the following navigation view is shown to direct the user to the closest safe zone. The safe zone is calculated by the backend, away from the fire and the wind direction. After exiting the navigation view, the user can explore safe locations near them. The red markers represent safe locations, while the towers represent PG&E towers that are potential fire hazards.