User:Admin/sandbox/maps: Difference between revisions
finally got map output |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Ask Query == | |||
<nowiki>{{#ask: [[hasCoordinates::+]] | |||
| format=map | |||
| zoom=7 | |||
| center=Salisbury, MA | |||
| height=300 | |||
| ?hasCoordinates | |||
| ?AddressLocality | |||
| ?telephone | |||
}} | |||
</nowiki> | |||
produces | |||
{{#ask: [[hasCoordinates::+]] | {{#ask: [[hasCoordinates::+]] | ||
| format=map | | 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 | | ?hasCoordinates | ||
| ?AddressLocality | | ?AddressLocality | ||
| Line 12: | 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}} | |||