Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:help:v2:intents [2020/04/22 12:44] alpinequesten:help:v2:intents [2024/01/23 19:00] psyberia
Line 1: Line 1:
-<sub>[[en:help|Online Help]] > [[en:help:v2|AlpineQuest 2.x]] > Maps & Layers</sub>+<sub>[[en:help:v2|Online Help]] > Intents</sub>
  
 ====== Intents ====== ====== Intents ======
Line 24: Line 24:
 | 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}''
  
 \\ \\
Line 40: Line 43:
 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})  |
Line 47: Line 50:
 | 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:18S+323482+4306480;crs=utm">geo:18S+323482+4306480;crs=utm</a><br />
 +</html>
  
 \\ \\
Line 86: Line 98:
 | 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__:\\
Line 96: Line 111:
 - 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}''
  
 \\ \\