Template:Coordinates: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly>{{#vardefine: city | {{#if: {{{city|}}} | {{{city}}}, }} {{#if: {{{province|}}} | {{{province}}} | BE }} }}{{#vardefine: address | {{#if: {{{address|}}} | {{{addr...")
 
No edit summary
 
(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 21:24, 4 February 2017