Maps examples/Geocode

From semantic-mediawiki.org
Jump to: navigation, search
Maps examplesMaps examples/Geocode

Geocoding "New York" with several mapping services

Default mapping service:

{{#geocode:New York}}

40° 42' 46.02" N, 74° 0' 21.39" W

Using geonames and specifying it as second parameter:

{{#geocode:New York|geonames}}

40° 42' 46.02" N, 74° 0' 21.39" W

Using goolge and specifying it as named parameter:

{{#geocode:New York|service=google}}

40° 42' 46.02" N, 74° 0' 21.39" W

Using nomatim:

{{#geocode:New York|nomatim}}

40° 42' 46.02" N, 74° 0' 21.39" W

Formatting to non-directional floats and to directional DMS.

{{#geocode:location=New York City|format=float|directional=no}}

Results into: 40.712783333333, -74.005941666667

{{#geocode:New York City|format=dms|directional=yes}}

Results into: 40° 42' 46.02" N, 74° 0' 21.39" W

Passing along coordinates

{{#geocode:40° 42' 51", -75° 59' 38"|format=float|directional=no}}

Results into: 40.714166666667, -75.993888888889

{{#geocode:40.7142691, -74.0059729|format=dms|directional=yes}}

Results into: 40° 42' 51.37" N, 74° 0' 21.50" W