User:Admin/sandbox/maps: Difference between revisions
Ask query still doesn't work when it's leaflet or map output; does work with table output |
No edit summary |
||
| (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}} | |||