Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ on their device. The app supports Apple Maps, Google Maps, Citymapper, Uber, and
- Petal Maps - `petalmaps` (Android only)
- Sygic - `sygic`
- TomTom GO - `tomtomgo` (IOS only)
- DashTag Maps - `dashtagmaps`

</details>

Expand Down Expand Up @@ -86,6 +87,7 @@ Just add this in your `Info.plist` depending on which apps you'd like to support
<string>dgis</string>
<string>lftgpas</string>
<string>sygic</string>
<string>dashtagmaps</string>
</array>
```

Expand Down
1 change: 1 addition & 0 deletions app.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const schemes = [
'petalmaps',
'sygic',
'here-route',
'dashtagmaps',
];

const intents = ['geo', 'waze'].map((app) => {
Expand Down
3 changes: 3 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const generatePrefixes = ({
sygic: 'com.sygic.aura://',
here: 'here-route://',
tomtomgo: 'tomtomgo://',
dashtagmaps: 'dashtagmaps://',
};
};

Expand Down Expand Up @@ -74,6 +75,7 @@ export const generateTitles = (
sygic: 'Sygic',
here: 'Here We Go',
tomtomgo: 'TomTom GO',
dashtagmaps: 'DashTag Maps',
...(titles || {}),
};
};
Expand Down Expand Up @@ -104,6 +106,7 @@ export const icons: Record<string, ImageRequireSource> = {
sygic: require('./images/sygic.png'),
here: require('./images/here.png'),
tomtomgo: require('./images/tomtomgo.png'),
dashtagmaps: require('./images/dashtagmaps.png'),
};

export const appKeys: string[] = Object.keys(icons);
Expand Down
Binary file added src/images/dashtagmaps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export type MapId =
| 'petalmaps'
| 'sygic'
| 'here'
| 'tomtomgo';
| 'tomtomgo'
| 'dashtagmaps';

export type DirectionMode = 'car' | 'walk' | 'public-transport' | 'bike';

Expand Down
14 changes: 14 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,20 @@ export const generateMapUrl = ({
url = `${prefixes.tomtomgo}x-callback-url/navigate?destination=${latlng}`;
}
break;
case 'dashtagmaps':
if (address) {
throw new MapsException(
'dashtagmaps does not support passing the address or has not been implemented yet.',
);
} else {
const waypointName = title ? encodedTitle : 'Destination';
if (useSourceDestiny) {
url = `${prefixes.dashtagmaps}navigate?waypoints=${sourceLat},${sourceLng},Start|${lat},${lng},${waypointName}`;
} else {
url = `${prefixes.dashtagmaps}navigate?lat=${lat}&lon=${lng}&title=${waypointName}`;
}
}
break;
}

return url;
Expand Down