Difference between revisions of "User:Admin/sandbox/maps"

From Freephile Wiki
Jump to navigation Jump to search
(Created page with "{{#display_map:New York City; Berlin; Brussels}} {{#geocode:New York City}}")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#display_map:New York City; Berlin; Brussels}}
+
== Ask Query ==
 +
<nowiki>{{#ask: [[hasCoordinates::+]]
 +
| format=map
 +
| zoom=7
 +
| center=Salisbury, MA
 +
| height=300
 +
| ?hasCoordinates
 +
| ?AddressLocality
 +
| ?telephone
 +
}}
 +
</nowiki>
 +
produces
 +
{{#ask: [[hasCoordinates::+]]
 +
| format=map
 +
| zoom=7
 +
| center=Salisbury, MA
 +
| height=300
 +
| ?hasCoordinates
 +
| ?AddressLocality
 +
| ?telephone
 +
}}
  
 +
The same query with a table output:
 +
{{#ask: [[hasCoordinates::+]]
 +
| format=table
 +
| ?hasCoordinates
 +
| ?AddressLocality
 +
| ?email
 +
}}
  
{{#geocode:New York City}}
+
 
 +
 
 +
 
 +
== Display Map ==
 +
<nowiki>
 +
{{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA;
 +
| height=300}}
 +
</nowiki>
 +
produces
 +
{{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA;
 +
| height=300}}
 +
 
 +
 
 +
 
 +
 
 +
 
 +
== Geo Coordinates ==
 +
Using <nowiki>{{#geocode:Salisbury, MA}}</nowiki> we get
 +
Salisbury, MA has the coordinates: {{#geocode:Salisbury, MA}}
 +
 
 +
Using a full street address, we get {{#geocode:66 Ferry Rd. Salisbury, MA}}

Latest revision as of 12:02, 19 March 2020

Ask Query[edit | edit source]

{{#ask: [[hasCoordinates::+]] | format=map | zoom=7 | center=Salisbury, MA | height=300 | ?hasCoordinates | ?AddressLocality | ?telephone }} produces

Loading map...

The same query with a table output:

 HasCoordinatesAddressLocality
Agaric42° 22' 16.55" N, 71° 5' 49.56" WCambridge, MA
BFC Computing43° 33' 53.96" N, 72° 12' 33.22" WPlainfield, NH
FOSS User Group Natick42° 17' 3.95" N, 71° 20' 50.76" WNatick, MA
IMarc42° 51' 24.04" N, 70° 55' 44.21" WAmesbury, MA
Miller Microcomputer Services42° 17' 59.67" N, 71° 21' 56.10" WNatick, MA
The Perl Shop42° 22' 28.46" N, 71° 3' 49.04" WBoston, MA



Display Map[edit | edit source]

{{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA; | height=300}} produces

Loading map...



Geo Coordinates[edit | edit source]

Using {{#geocode:Salisbury, MA}} we get Salisbury, MA has the coordinates: 42° 50' 30.33" N, 70° 51' 38.19" W

Using a full street address, we get 42° 49' 46.55" N, 70° 51' 13.92" W