Difference between revisions of "User:Admin/sandbox/maps"
< User:Admin | sandbox
Jump to navigation
Jump to search
(Ask query still doesn't work when it's leaflet or map output; does work with table output) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#ask: [[ | + | == Ask Query == |
− | | format= | + | <nowiki>{{#ask: [[hasCoordinates::+]] |
+ | | format=map | ||
+ | | zoom=7 | ||
+ | | center=Salisbury, MA | ||
+ | | height=300 | ||
+ | | ?hasCoordinates | ||
+ | | ?AddressLocality | ||
+ | | ?telephone | ||
+ | }} | ||
+ | </nowiki> | ||
+ | produces | ||
+ | {{#ask: [[hasCoordinates::+]] | ||
+ | | format=map | ||
| zoom=7 | | zoom=7 | ||
− | | center= | + | | center=Salisbury, MA |
| height=300 | | height=300 | ||
+ | | ?hasCoordinates | ||
+ | | ?AddressLocality | ||
+ | | ?telephone | ||
+ | }} | ||
+ | |||
+ | The same query with a table output: | ||
+ | {{#ask: [[hasCoordinates::+]] | ||
+ | | format=table | ||
+ | | ?hasCoordinates | ||
| ?AddressLocality | | ?AddressLocality | ||
| ?email | | ?email | ||
Line 11: | Line 32: | ||
+ | == Display Map == | ||
+ | <nowiki> | ||
+ | {{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA; | ||
+ | | height=300}} | ||
+ | </nowiki> | ||
+ | produces | ||
{{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA; | {{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA; | ||
| height=300}} | | height=300}} | ||
+ | |||
+ | |||
+ | |||
+ | == Geo Coordinates == | ||
+ | Using <nowiki>{{#geocode:Salisbury, MA}}</nowiki> we get | ||
Salisbury, MA has the coordinates: {{#geocode:Salisbury, MA}} | 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
The same query with a table output:
HasCoordinates | AddressLocality | EmailThis property is a special property in this wiki. | |
---|---|---|---|
Agaric | 42° 22' 16.55" N, 71° 5' 49.56" W | Cambridge, MA | ask@agaric.coop |
BFC Computing | 43° 33' 53.96" N, 72° 12' 33.22" W | Plainfield, NH | info@bfccomputing.com |
FOSS User Group Natick | 42° 17' 3.95" N, 71° 20' 50.76" W | Natick, MA | no-reply@example.org |
IMarc | 42° 51' 24.04" N, 70° 55' 44.21" W | Amesbury, MA | hello@imarc.com |
Miller Microcomputer Services | 42° 17' 59.67" N, 71° 21' 56.10" W | Natick, MA | TheMillers@millermicro.com |
The Perl Shop | 42° 22' 28.46" N, 71° 3' 49.04" W | Boston, MA | tmetro@theperlshop.com |
Display Map[edit | edit source]
{{#display_map:Salisbury, MA; Boston, MA; Cambridge, MA; | height=300}} produces
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