Difference between revisions of "Template:Coordinates"

From Pirate Party Belgium
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine: city | {{#if: {{{city|}}} | {{{city}}}, }} {{#if: {{{province|}}} | {{{province}}} | BE }} }}{{#vardefine: address | {{#if: {{{address|}}} | {{{addr...")
 
Line 4: Line 4:
 
| {{#if: {{{address|}}} | {{{address}}}, }} {{#var: city}}
 
| {{#if: {{{address|}}} | {{{address}}}, }} {{#var: city}}
 
}}{{#if: {{{venue|}}}  
 
}}{{#if: {{{venue|}}}  
| {{#vardefine: coords <!-- try address with venue -->
+
| {{#vardefine: coords  
   | {{#geocode: {{{venue}}}, {{#var:address}} }}
+
   | {{#geocode: {{{venue}}}, {{#var:address}} }} <!-- try address with venue -->
 
   }}  
 
   }}  
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed  
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed  
| {{#vardefine: coords <!-- try address without venue -->
+
| {{#vardefine: coords  
   | {{#geocode: {{#var:address}} }}
+
   | {{#geocode: {{#var:address}} }} <!-- try address without venue -->
 
   }}
 
   }}
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed
| {{#vardefine: coords <!-- try without address (city / province only) -->
+
| {{#vardefine: coords  
   | {{#geocode: {{#var:city}} }}  
+
   | {{#geocode: {{#var:city}} }} <!-- try without address (city / province only) -->
 
   }}  
 
   }}  
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed  
 
}}{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed  

Revision as of 22:21, 4 February 2017