Coordinate formats: Difference between revisions
(Created page with "Maps supports multiple '''coordinate formats.''' This means that wherever you provide a location, you can either provide an address (which is then geocoded), or you can provid...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
Maps supports multiple '''coordinate formats.''' This means that wherever you provide a location, you can either provide an address (which is then geocoded), or you can provide the coordinates directly in your format of choice. Maps is also capable of displaying coordinates in any of the formats it supports. | Maps supports multiple '''coordinate formats.''' This means that wherever you provide a location, you can either provide an address (which is then geocoded), or you can provide the coordinates directly in your format of choice. Maps is also capable of displaying coordinates in any of the formats it supports. | ||
Places where you can provide coordinates: [[ | Places where you can provide coordinates: [[Display map function|<code>#display_map</code>]], [[Coordinates function|<code>#coordinates</code>]], [[Geodistance function|<code>#geodistance</code>]], [[Finddestination function|<code>#finddestination</code>]] and in SMW via {{DataType|Geographic coordinates}}. | ||
Places where maps can display coordinates: markers in maps (via [[ | Places where maps can display coordinates: markers in maps (via [[Display map function|<code>#display_map</code>]]), the output of [[Coordinates function|<code>#coordinates</code>]], the output of [[Finddestination function|<code>#finddestination</code>]], SMW query results and other places where SMW displays the coordinate data type. | ||
== Supported formats == | == Supported formats == | ||
All underneath formats are supported in both directional and non-directional notation. Directional notation uses letters such as N, E, S and W to indicate the 'direction' of a value, where non-directional notation uses positive and negative values. Available formats can be restricted in the wiki config with <code>egMapsAvailableCoordNotations</code>. | |||
All underneath formats are supported in both directional and non-directional notation. Directional notation uses letters such as N, E, S and W to indicate the 'direction' of a value, where non-directional notation uses positive and negative values. Available formats can be restricted in the [[Configuration|wiki config]] with <code>egMapsAvailableCoordNotations</code>. | |||
=== Floats === | === Floats === | ||
Parameter value: <code>float</code> | Parameter value: <code>float</code> | ||
* Directional: 55.7557860 N, 37.6176330 W | * Directional: 55.7557860 N, 37.6176330 W | ||
Line 14: | Line 16: | ||
=== Decimal Degrees === | === Decimal Degrees === | ||
Parameter value: <code>dd</code> | Parameter value: <code>dd</code> | ||
* Directional: 55.7557860° N, 37.6176330° W | * Directional: 55.7557860° N, 37.6176330° W | ||
Line 19: | Line 22: | ||
=== Decimal Minutes === | === Decimal Minutes === | ||
Parameter value: <code>dm</code> | Parameter value: <code>dm</code> | ||
* Directional: {{#coordinates:55.7557860, -37.6176330|format=dm|directional=yes}} | * Directional: {{#coordinates:55.7557860, -37.6176330|format=dm|directional=yes}} | ||
Line 24: | Line 28: | ||
=== Degrees Minutes Seconds === | === Degrees Minutes Seconds === | ||
Parameter value: <code>dms</code> | Parameter value: <code>dms</code> | ||
* Directional: {{#coordinates:55.7557860, -37.6176330|format=dms|directional=yes}} | * Directional: {{#coordinates:55.7557860, -37.6176330|format=dms|directional=yes}} | ||
Line 30: | Line 35: | ||
== Default format == | == Default format == | ||
The default format is directional DMS. This can be changed in the wiki config with <code>egMapsCoordinateNotation</code> and <code>egMapsCoordinateDirectional</code>. | The default format is directional DMS. This can be changed in the [[Configuration|wiki config]] with <code>egMapsCoordinateNotation</code> and <code>egMapsCoordinateDirectional</code>. |
Latest revision as of 22:07, 7 May 2020
Maps supports multiple coordinate formats. This means that wherever you provide a location, you can either provide an address (which is then geocoded), or you can provide the coordinates directly in your format of choice. Maps is also capable of displaying coordinates in any of the formats it supports.
Places where you can provide coordinates: #display_map
, #coordinates
, #geodistance
, #finddestination
and in SMW via Template:DataType.
Places where maps can display coordinates: markers in maps (via #display_map
), the output of #coordinates
, the output of #finddestination
, SMW query results and other places where SMW displays the coordinate data type.
Supported formats
All underneath formats are supported in both directional and non-directional notation. Directional notation uses letters such as N, E, S and W to indicate the 'direction' of a value, where non-directional notation uses positive and negative values. Available formats can be restricted in the wiki config with egMapsAvailableCoordNotations
.
Floats
Parameter value: float
- Directional: 55.7557860 N, 37.6176330 W
- Non-directional: 55.7557860, -37.6176330
Decimal Degrees
Parameter value: dd
- Directional: 55.7557860° N, 37.6176330° W
- Non-directional: 55.7557860°, -37.6176330°
Decimal Minutes
Parameter value: dm
- Directional: 55° 45.3472' N, 37° 37.0580' W
- Non-directional: 55° 45.3472', -37° 37.0580'
Degrees Minutes Seconds
Parameter value: dms
- Directional: 55° 45' 20.83" N, 37° 37' 3.48" W
- Non-directional: 55° 45' 20.83", -37° 37' 3.48"
Default format
The default format is directional DMS. This can be changed in the wiki config with egMapsCoordinateNotation
and egMapsCoordinateDirectional
.