install twilio, gps coords in message

This commit is contained in:
BGV
2025-03-30 11:10:23 -04:00
parent d18ab2ff28
commit 57c954cbcd
2 changed files with 6 additions and 3 deletions

View File

@@ -78,14 +78,16 @@ function CallPage() {
"Content-Type": "application/json",
},
body: JSON.stringify({
message: `John Smith needs help.`,
message: `John Smith needs help. His GPS location is: https://www.google.com/maps/search/?api=1&query=38.03163938795633,-78.51085551716174`,
}),
});
if (!response.ok) {
console.error("Error sending message:", response.statusText);
return;
}
} else {
alert("Emergency message sent successfully.");
}
}
return (