chore: add new features for cabine
This commit is contained in:
@@ -434,7 +434,10 @@ export default function DashboardScreen() {
|
||||
|
||||
const openNavigation = (address: string) => {
|
||||
const encoded = encodeURIComponent(address);
|
||||
const url = `https://www.google.com/maps/dir/?api=1&destination=${encoded}&travelmode=driving`;
|
||||
let url = `https://waze.com/ul?q=${encoded}&navigate=yes`;
|
||||
if (lastCoords) {
|
||||
url += `&ll=${lastCoords.lat},${lastCoords.lng}`;
|
||||
}
|
||||
Linking.openURL(url);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user