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.
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.