{{ $apiKey := .Site.Params.apiKey }} {{ $label := .Get "label" }} {{ $url := .Get "url" }} {{ $adr := .Get "address" }} {{ $adrURL := urlquery $adr }} {{ $LLapiURL := printf "https://api.geoapify.com/v1/geocode/search?text=%s&format=json&apiKey=%s" $adrURL $apiKey }} {{ $data := getJSON $LLapiURL }} {{ with index $data.results 0 }} {{ $lon := .lon }} {{ $lat := .lat }} {{ $MapApiUrl := printf "https://maps.geoapify.com/v1/staticmap?style=osm-bright&width=500&height=500¢er=lonlat:%f,%f&zoom=12&marker=lonlat:%f,%f;color:%%23ff0000;size:medium&scaleFactor=2&apiKey=%s" $lon $lat $lon $lat $apiKey }}
{{ with $label }}

{{ $label }}

{{ end }}

{{ .address_line1 }}
{{ replaceRE `, United States of America$` "" .address_line2 }}

{{end}}
{{ with $url }} See on Google Maps {{ end }}