2021-11-26 20:25:28 +00:00
# My Location
2022-11-25 09:42:25 +00:00
*Sets and stores GPS lat and lon of your preferred city*
2021-11-26 20:25:28 +00:00
2022-11-25 09:42:25 +00:00
To access, you have two options:
**In the App Loader** once My Location is installed, click on the 'Save' icon
next to it - and you can choose your location on a map.
**On Bangle.js** go to `Settings -> Apps -> My Location`
2022-05-26 11:50:44 +00:00
2023-06-26 11:59:21 +00:00
* Select one of the preset Cities, setup through the GPS, waypoints (if installed) or use the webinterface from the AppLoader
2021-11-26 20:25:28 +00:00
* Other Apps can read this information to do calculations based on location
* When the City shows ??? it means the location has been set through the GPS
## Example Code
const LOCATION_FILE = "mylocation.json";
let location;
// requires the myLocation app
function loadLocation() {
location = require("Storage").readJSON(LOCATION_FILE,1)||{"lat":51.5072,"lon":0.1276,"location":"London"};
}
## Screenshots
### Select one of the Preset Cities
2021-12-01 09:23:07 +00:00
* The presets are London, Newcastle, Edinburgh, Paris, New York, Tokyo
2021-11-26 20:25:28 +00:00

### Or select 'Set By GPS' to start the GPS

### While the GPS is running you will see:

### When a GPS fix is received you will see:

2021-11-29 19:58:19 +00:00
Written by: [Hugh Barney ](https://github.com/hughbarney ) For support and discussion please post in the [Bangle JS Forum ](http://forum.espruino.com/microcosms/1424/ )