av8 – Home

Development Blog Week 3 – Map Working & AR

For the third week of development we focused on beginning the implementation of the AR module and improving the map related functionality.

Our primary aims for this week were:

  1. Improve the UI to properly represent a flight tracking map
  2. Add a refresh functionality to the map
  3. Try to have some functionality with the AR

Now that we had the Firebase cloud function to call the API working, it was much easier to improve the UI of our app. In week 2, we represented each individual plane with the default Google Maps Marker. If the user tapped on a marker it would show the plane’s callsign and registration. We tried to display more details but the default marker infobox only allows a very limited text description. This meant we would have to design a custom infobox. We decided to defer this until the following week.

We replaced the default Google Maps markers with custom plane icons. We also changed the rotation of the icons to match the heading/bearing of the plane in question. A plane class was created to represent each plane as an object. This will allow us to easily expand the class to add more fields or attributes in the future if required.

We considered having an auto-refresh function in the map activity but decided against it since the API has a quota of 1,000 calls a day. While it would be unlikely this quota would be reached, as a precaution we decided that the user should have to click a button to manually refresh the map. This button was added to the toolbar.

We set up a basic AR scene and carried out extensive research for how best to program the AR component. We read Google’s documentation for ARCore and researched elsewhere extensively. We concluded that we would need to use Sceneform with ARCore and also the ARCore-Location library, which most apps that represent real world coordinates within an AR scene use.

Next week we will focus on the AR primarily and also design a custom marker infobox.

Create your own website, free on WordPress.com.Create your own website.
Start free