diff --git a/src/lib/islands/near-to-me-island.svelte b/src/lib/islands/near-to-me-island.svelte
index 47dfc38..6afd22c 100644
--- a/src/lib/islands/near-to-me-island.svelte
+++ b/src/lib/islands/near-to-me-island.svelte
@@ -12,18 +12,17 @@
function turnOnLocation() {
location.set(true);
- toast("To disable location, go to settings")
+ toast("To disable location, go to settings");
}
async function getNearestStations() {
const currLocation = await getCurrentLocation();
- console.debug(`Current Latitude: ${currLocation.latitude}, Current Longitude: ${currLocation.longitude}`)
- const apiPath = `/api/v2/live/station/nearest/${currLocation.latitude}/${currLocation.longitude}`
- const res = await apiGet(apiPath)
- console.log(res)
- return res as any[]
+ console.debug(`Current Latitude: ${currLocation.latitude}, Current Longitude: ${currLocation.longitude}`);
+ const apiPath = `/api/v2/live/station/nearest/${currLocation.latitude}/${currLocation.longitude}`;
+ const res = await apiGet(apiPath);
+ console.log(res);
+ return res as any[];
}
-
Fetching Location Error: {err.message}
The email server may store the address and message content as part of its regular operation, and your consent to this is implied when you sign up.
In addition to the host portion of your email address, a randomly generated UUID is stored for the purpose of authorizing access to the rail staff data.
-If you enable location data, your location will be sent to the server when you navigate to the homepage to determine your closest stations. This data is never stored on the server after the nearest stations have been send to your device.
++ If you enable location data, your location will be sent to the server when you navigate to the homepage to determine your closest stations. This data is never stored on the + server after the nearest stations have been send to your device. +
When you report an issue, certain data is collected, including your browser's User Agent string and the size of the window in which you are viewing the website.
diff --git a/src/routes/more/settings/+page.svelte b/src/routes/more/settings/+page.svelte
index 6121238..c2190be 100644
--- a/src/routes/more/settings/+page.svelte
+++ b/src/routes/more/settings/+page.svelte
@@ -9,11 +9,11 @@
const title = "Settings";
$: if ($location) {
- getCurrentLocation()
+ getCurrentLocation();
}
function locationToast() {
- toast("Settings updated")
+ toast("Settings updated");
}
@@ -21,11 +21,11 @@
Use your location to quickly check departure boards near you
- timetable-mgr
{data?.["mq-client"] || "Not installed"}
+ timetable-mgr
{data?.["mq-client"] || "Not installed"}