In this project we had to retrieve an API key from mapbox, and plot points in an array detailing bus stops in the city of Boston, the stops should be between MIT and Harvard. (pahk da cah in da yahd..you know you read it in a Boston accent)
give it a go here https://OhhNoo2150.github.io/Bus_Tracker
upon visiting the site you should get a map of Boston, when you click the button, the markers should pop up detailing the stops for that bus line.
first thing you'll want to head over to www.mapbox.com sign up for an account and get an API key
it depends
you have a couple ways to get this up and running
- You can copy my code, create individual repositories like I did and set up github pages to access them (make sure that you use the naming convention of index.html or it won't load on the screen.)
- You can sign up for this bootcamp and they'll show you how to do it
- you're a programming wizard and can do this on your own cause you don't need a bootcamp you're that great.
If you don't already have a github profile, you'll want to create one (i'm not sure where you're accessing this from if you don't already have one) create a repository add the files index.html styles.css script.js copy the files from my files into those files, add them to your repo, set up github pages and it will run it for you.
I'm a little too new to this to offer much help, double and triple check your code to ensure that you don't miss anything...these things are fickle and only work if it's all the way correct
MIT Daniel I Rivera @Boricua2150 (twitter) github.com/OhhNoo2150
Alejandro Santiago github.com/CubanFireball81
no future releases anticipated no further modifications anticipated
- 0.1
- Initial Release
MIT License
Copyright (c) 2022 Daniel I Rivera
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
I'd like to acknowledge Alex Santiago, he helped me figure out issues as to why it wouldn't run.