Landing : Athabascau University

Unit 7 Reflection

  • Public
By Brent Beaudry December 26, 2020 - 2:29pm

I must admit I had bigger plans for this unit, but I’ve simply run out of steam. I’m burnt out. Perhaps it the stress of COVID and holiday stress contributed, but I’ve run out of mental energy. I can’t even seem to solve the simpler code issues when trying to modify existing code, which is something I’m good at. Such as it is, here is Unit 7:

I chose to implement the Google Maps API with some extensive code modification to create an exercise where the student locates themselves, then finds the distance from their location to their provincial capital and the national capital. To achieve this, the plan was to use Geolocation (https://developers.google.com/maps/documentation/javascript/examples/map-geolocation?hl=en_US ), which I successfully implemented, and Distance Matrix Service (https://developers.google.com/maps/documentation/javascript/examples/distance-matrix?hl=en_US)

which I couldn’t get implemented because I ran out of steam.

                I modified the geolocation API to display Latitude and Longitude to use as a starting point for the Distance Matrix. The user is to enter their coordinates into text inputs, then enter their respective provincial and national capital cities (text inputs for city and province), and click a “Go” button to activate a callback function to determine the distances on the map. I had trouble with the javascript and ultimately gave in on day 3 of trying, reverting to just the geolocation API for now. The code fror the Distance Matrix Service makes sense to me, but I can’t get the mods to work properly, and I can’t seem to figure out why the browsers won’t properly recognize the “google” text in the object initiation (it works fine for the geolocation object initiation).

That’s enough for now. I really need a mental break before next semester.