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...")
 
 
(One intermediate revision by the same user not shown)
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  
+
}}{{#if: {{{address|}}}
| {{#vardefine: coords <!-- try address without venue -->
+
| {{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed  
  | {{#geocode: {{#var:address}} }}
+
  | {{#vardefine: coords  
 +
    | {{#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  

Latest revision as of 22:24, 4 February 2017