This is a simple Javascript ES6 application that provides basic scaffold features typical of a location sharing service. It can be plugged into any bigger project which requires location sharing service as one of its many components or microservices.
- Subscribe to static hosting services provider (e.g., Firebase);
- Follow instruction on the provider website to deploy the application;
- Load the application using the appropriate url;
- The application uses google map API to render map of current location of user;
- Map marker is used to indicate the current location of the user on the map;
- User current location is determined by coordinates returned from browser API;
- Link of user current location is auto-displayed on an input field;
- To share one's location, a user can easily copy the link (from the input field) to clipboard and share same with friends;
- The Google API key used (in this project) to fetch map data has some referral restrictions;
- To use this application, we recommend that the Google API key used in the app be replaced with a paid version (or alternative full-featured if available) obtainable from Google or better still, use another map service (e.g., mapbox) and tweak the code as may be required;
- Please ignore the commit comment that the Google API key has been replaced with full-featured, this isn't the case yet;