The project is a React application for tracking cycling conditions in Copenhagen, Denmark.
The app connects to APIs provided by the Norwegian Meteorological Institute, the City of Copenhagen and Google Maps Geocoding API, in order to retrieve data regarding weather conditions, addresses and bicycle paths state.
Further usage instructions can be found in the application GUI.
- Libraries:
- React.JS
- react-router-dom
- mapbox-gl
- react-geocode
- recharts
- @material-ui
- APIs:
- Norwegian Meteorological Institute API
- Open Data API - City of Copenhagen
- Google Maps Geocoding API
Navigate to https://console.cloud.google.com and create a new Geocoding API.
In directory src
add a new JSON file named GeolocationApi.json
that has the following contents:
{
"apiKey": "YourGoogleApiKey"
}
The system will retrieve the API key by itself in the views that require it.
Run the following command in the root project directory for installing all the necessary dependencies:
For running the React app, run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.