Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:help:v2:intents [2020/04/22 12:44] – alpinequest | en:help:v2:intents [2024/01/23 18:55] – psyberia |
---|
<sub>[[en:help|Online Help]] > [[en:help:v2|AlpineQuest 2.x]] > Maps & Layers</sub> | <sub>[[en:help:v2|Online Help]] > Intents</sub> |
| |
====== Intents ====== | ====== Intents ====== |
| net.psyberia.intent.extra.LATITUDE | Double | WGS84 latitude. | | | net.psyberia.intent.extra.LATITUDE | Double | WGS84 latitude. | |
| net.psyberia.intent.extra.ELEVATION | Double | WGS84 elevation (meters). | | | net.psyberia.intent.extra.ELEVATION | Double | WGS84 elevation (meters). | |
| | net.psyberia.intent.extra.HEADING | Double | Heading of movement (degrees). | |
| | net.psyberia.intent.extra.TIMESTAMP | Double | Unix timestamp in seconds, instead of current date. Set to ''"0.0"'' for no date. | |
| net.psyberia.intent.extra.NAME | String | name of the point (ignored if using a track ID). | | | net.psyberia.intent.extra.NAME | String | name of the point (ignored if using a track ID). | |
| net.psyberia.intent.extra.COMMENT | String | comment of the point (ignored if using a track ID). | | | net.psyberia.intent.extra.COMMENT | String | comment of the point (ignored if using a track ID). | |
| net.psyberia.intent.extra.DESCRIPTION | String | description of the point (ignored if using a track ID). | | | net.psyberia.intent.extra.DESCRIPTION | String | description of the point (ignored if using a track ID). | |
| net.psyberia.intent.extra.ICON | String | icon of the point (ignored if using a track ID). | | | net.psyberia.intent.extra.ICON | String | icon name of the point (ignored if using a track ID). | |
| | net.psyberia.intent.extra.MOVE_TO | Boolean | Whether or not move the map center over the location. | |
| |
__Example in Automate__:\\ | __Example in Automate__:\\ |
- Block type: ''App start''\\ | - Block type: ''App start''\\ |
- Action: ''"net.psyberia.intent.action.DISPLAY_LOCATION"''\\ | - Action: ''"net.psyberia.intent.action.DISPLAY_LOCATION"''\\ |
- Extras: ''{"net.psyberia.intent.extra.LONGITUDE": -0.1, "net.psyberia.intent.extra.LATITUDE": 54.5, "net.psyberia.intent.extra.NAME": "Test"}'' | - Extras: ''{"net.psyberia.intent.extra.LONGITUDE": -0.1, "net.psyberia.intent.extra.LATITUDE": 54.5, "net.psyberia.intent.extra.NAME": "Test", "net.psyberia.intent.extra.ICON": "Car", "net.psyberia.intent.extra.MOVE_TO" as boolean: 0}'' |
| |
\\ | \\ |
Displays or searches a location. | Displays or searches a location. |
| |
^ Supported formats examples ^ | ^ Supported formats example ^ |
| geo:{lat},{lon} | | | geo:{lat},{lon} | |
| geo:{lat},{lon}({name}) | | | geo:{lat},{lon}({name}) | |
| geo:0,0?q={lat},{lon}({name}) | | | geo:0,0?q={lat},{lon}({name}) | |
| geo:0,0?q={address} | | | geo:0,0?q={address} | |
| |
| Some example: |
| <html><br /> |
| <a href="geo:38.8894716,-77.0352538">geo:38.8894716,-77.0352538</a><br /> |
| <a href="geo:38.8894716,-77.0352538;name=Washington+Monument">geo:38.8894716,-77.0352538;name=Washington+Monument</a><br /> |
| <a href="geo:38.8894716,-77.0352538(Washington+Monument)">geo:38.8894716,-77.0352538(Washington+Monument)</a><br /> |
| <a href="geo:323482,4306480;crs=EPSG:32618;u=20">geo:323482,4306480;crs=EPSG:32618;u=20</a><br /> |
| <a href="geo:35U+571315+5538028;crs=utm">geo:35U+571315+5538028;crs=utm</a><br /> |
| </html> |
| |
\\ | \\ |
| latitude | Double | WGS84 latitude. | | | latitude | Double | WGS84 latitude. | |
| elevation | Double | WGS84 elevation (meters). | | | elevation | Double | WGS84 elevation (meters). | |
| | heading | Double | Heading of movement (degrees). | |
| | timestamp | Double | Unix timestamp in seconds, instead of current date. Set to ''"0.0"'' for no date. | |
| name | String | name of the point (ignored if using a track ID). | | | name | String | name of the point (ignored if using a track ID). | |
| comment | String | comment of the point (ignored if using a track ID). | | | comment | String | comment of the point (ignored if using a track ID). | |
| description | String | description of the point (ignored if using a track ID). | | | description | String | description of the point (ignored if using a track ID). | |
| icon | String | icon of the point (ignored if using a track ID). | | | icon | String | icon name of the point (ignored if using a track ID). | |
| | move_to | Boolean | Whether or not move the map center over the location. | |
| |
__Example in Automate__:\\ | __Example in Automate__:\\ |
- Activity class: ''psyberia.alpinequest.full.AlpineQuestActivity''\\ | - Activity class: ''psyberia.alpinequest.full.AlpineQuestActivity''\\ |
- Action: ''"DISPLAY_LOCATION"''\\ | - Action: ''"DISPLAY_LOCATION"''\\ |
- Extras: ''{"longitude": -0.1, "latitude": 54.5, "name": "Test"}'' | - Extras: ''{"longitude": -0.1, "latitude": 54.5, "name": "Test", "icon": "Car", "move_to" as boolean: 0}'' |
| |
\\ | \\ |