Difference between revisions of "Template:Location"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
|{{#arraymap: Street,City,State|,|@@@|{{#if: {{{@@@|}}}|{{{@@@|}}}, }}|}}{{{Country|United States of America}}} | |{{#arraymap: Street,City,State|,|@@@|{{#if: {{{@@@|}}}|{{{@@@|}}}, }}|}}{{{Country|United States of America}}} | ||
|* | |* | ||
− | }}<!-- -->{{#subobject: | + | }}<!-- -->{{#vardefine: geo|{{#geocode:location={{{Building number|}}} {{#arrayprint: mapaddr|*}}|format=float|directional=no}}}}<!-- -->{{#subobject: |
|Is primary={{{Is primary|}}} | |Is primary={{{Is primary|}}} | ||
|Address label={{{Address label|}}} | |Address label={{{Address label|}}} | ||
Line 19: | Line 19: | ||
|Coordinates={{#if:{{{Latitude|}}} {{{Longitude|}}} | |Coordinates={{#if:{{{Latitude|}}} {{{Longitude|}}} | ||
|{{{Latitude|}}},{{{Longitude|}}} | |{{{Latitude|}}},{{{Longitude|}}} | ||
− | |{{#geocode:location={{{ | + | |{{#ifeq:{{#var:geo}}|Geocoding failed|{#geocode:location={{{City|}}} {{{Zipcode|}}}, {{{State|}}}, {{{Country|United States of America}}}|format=float|directional=no}}}} |
}} | }} | ||
}}.</includeonly> | }}.</includeonly> |