Examples/Querying with additional properties
From Mapping on MediaWiki
< Examples
Jump to: navigation,
search
These queries demonstrate how to query additional properties, which are displayed in pop-ups you can open by clicking their corresponding marker.
Query showing all cities located in Germany or Belgium together with 'Located in' and 'Has location type' properties:
{{#ask: [[Category:Locations]] [[Has location type::City]] <q>[[Located in::Germany]]OR[[Located in::Belgium]]</q>
| ?Has coordinates
| ?Has location type
| ?Located in
| format=map
}}
Loading map...
{"format":"googlemaps3","type":"ROADMAP","types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"\u2026 further results","default":"","geoservice":"google","zoom":false,"width":"auto","height":"350px","centre":false,"layers":[],"controls":["pan","zoom","type","scale","streetview"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"kml":[],"gkml":[],"fusiontables":[],"resizable":false,"tilt":0,"kmlrezoom":false,"poi":true,"imageoverlays":[],"markercluster":false,"searchmarkers":"","icon":"","visitedicon":"","forceshow":true,"showtitle":true,"hidenamespace":false,"template":false,"title":"","label":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"locations":[{"text":"<b><a href=\"\/wiki\/Aach\" title=\"Aach\">Aach<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Aach","link":null,"lat":47.5531824,"lon":9.2993198,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Antwerp\" title=\"Antwerp\">Antwerp<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Antwerp","link":null,"lat":51.2205806,"lon":4.3997224,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Arnsberg\" title=\"Arnsberg\">Arnsberg<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Arnsberg","link":null,"lat":51.3952673,"lon":8.0686871,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Aurich\" title=\"Aurich\">Aurich<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Aurich","link":null,"lat":53.467071,"lon":7.480294,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Belsele\" title=\"Belsele\">Belsele<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Belsele","link":null,"lat":52.14284,"lon":4.08618,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Berlin\" title=\"Berlin\">Berlin<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Berlin","link":null,"lat":52.5234051,"lon":10.4113999,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Dresden\" title=\"Dresden\">Dresden<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Dresden","link":null,"lat":51.1057993,"lon":13.6618757,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Gent\" title=\"Gent\">Gent<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Gent","link":null,"lat":51.0535622,"lon":3.720867,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Leipzig\" title=\"Leipzig\">Leipzig<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Leipzig","link":null,"lat":51.3396731,"lon":12.3713639,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Radebeul\" title=\"Radebeul\">Radebeul<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Radebeul","link":null,"lat":51.1057993,"lon":13.6618757,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""}]}
Query showing all cities located in a European country together with 'Located in' and 'Has location type' properties:
{{#ask: [[Category:Locations]] [[Has location type::City]] [[Located in.Located in::Europe]]
| ?Has coordinates
| ?Has location type
| ?Located in
| format=map
}}
Loading map...
{"format":"googlemaps3","type":"ROADMAP","types":["ROADMAP","SATELLITE","HYBRID","TERRAIN"],"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"\u2026 further results","default":"","geoservice":"google","zoom":false,"width":"auto","height":"350px","centre":false,"layers":[],"controls":["pan","zoom","type","scale","streetview"],"zoomstyle":"DEFAULT","typestyle":"DEFAULT","autoinfowindows":false,"kml":[],"gkml":[],"fusiontables":[],"resizable":false,"tilt":0,"kmlrezoom":false,"poi":true,"imageoverlays":[],"markercluster":false,"searchmarkers":"","icon":"","visitedicon":"","forceshow":true,"showtitle":true,"hidenamespace":false,"template":false,"title":"","label":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"locations":[{"text":"<b><a href=\"\/wiki\/Aach\" title=\"Aach\">Aach<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Aach","link":null,"lat":47.5531824,"lon":9.2993198,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Amsterdam\" title=\"Amsterdam\">Amsterdam<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: The Netherlands","title":"Amsterdam","link":null,"lat":52.3738007,"lon":4.8909347,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Antwerp\" title=\"Antwerp\">Antwerp<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Antwerp","link":null,"lat":51.2205806,"lon":4.3997224,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Arnsberg\" title=\"Arnsberg\">Arnsberg<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Arnsberg","link":null,"lat":51.3952673,"lon":8.0686871,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Athens\" title=\"Athens\">Athens<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Greece","title":"Athens","link":null,"lat":37.9714871892,"lon":23.7265634537,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Aurich\" title=\"Aurich\">Aurich<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Aurich","link":null,"lat":53.467071,"lon":7.480294,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Belsele\" title=\"Belsele\">Belsele<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Belsele","link":null,"lat":52.14284,"lon":4.08618,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Berlin\" title=\"Berlin\">Berlin<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Berlin","link":null,"lat":52.5234051,"lon":10.4113999,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Den_Haag\" title=\"Den Haag\">Den Haag<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: The Netherlands","title":"Den Haag","link":null,"lat":52.0782886,"lon":4.313685,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Dresden\" title=\"Dresden\">Dresden<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Dresden","link":null,"lat":51.1057993,"lon":13.6618757,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Eindhoven\" title=\"Eindhoven\">Eindhoven<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: The Netherlands","title":"Eindhoven","link":null,"lat":51.4365957,"lon":5.4780014,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Gent\" title=\"Gent\">Gent<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Belgium","title":"Gent","link":null,"lat":51.0535622,"lon":3.720867,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Leipzig\" title=\"Leipzig\">Leipzig<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Leipzig","link":null,"lat":51.3396731,"lon":12.3713639,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/London\" title=\"London\">London<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: England","title":"London","link":null,"lat":51.5001524,"lon":-0.1262362,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Paris\" title=\"Paris\">Paris<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: France","title":"Paris","link":null,"lat":48.8566667,"lon":2.3509871,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Radebeul\" title=\"Radebeul\">Radebeul<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Germany","title":"Radebeul","link":null,"lat":51.1057993,"lon":13.6618757,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Rotterdam\" title=\"Rotterdam\">Rotterdam<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: The Netherlands","title":"Rotterdam","link":null,"lat":51.9226899,"lon":4.4707867,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Utrecht\" title=\"Utrecht\">Utrecht<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: The Netherlands","title":"Utrecht","link":null,"lat":52.0912623,"lon":5.1227478,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""},{"text":"<b><a href=\"\/wiki\/Veroia\" title=\"Veroia\">Veroia<\/a><\/b><hr \/><a href=\"\/wiki\/Property:Has_location_type\" title=\"Property:Has location type\">Has location type<\/a>: City<br \/><a href=\"\/wiki\/Property:Located_in\" title=\"Property:Located in\">Located in<\/a>: Greece","title":"Veroia","link":null,"lat":40.526055,"lon":22.203,"alt":0,"address":"","icon":"","group":"","inlineLabel":"","visitedicon":""}]}
