---
layout: layouts/been.njk
title: Where
permalink: /where/
description: AMy past check-ins.
withSidebar: true
leafletMap: true
---
{% set checkins = whereCheckins.checkins or [] %}
Where
My past check-ins.
{% if checkins.length %}
{% set newest = checkins[0] %}
I'm currently in {% if newest.venueWebsiteUrl %}{{ newest.name }}{% else %}{{ newest.name }}{% endif %}{% if newest.locality %}, {{ newest.locality }}{% elif newest.locationText %}, {{ newest.locationText }}{% endif %}
{% endif %}
{% set mapPoints = [] %}
{% set homeSeenNames = [] %}
{% for c in checkins %}
{% if c.latitude and c.longitude %}
{% if "Murnau" in (c.locality or "") or "Garmisch" in (c.locality or "") %}
{% if c.name not in homeSeenNames %}
{% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueWebsiteUrl}), mapPoints) %}
{% set homeSeenNames = (homeSeenNames.push(c.name), homeSeenNames) %}
{% endif %}
{% else %}
{% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueWebsiteUrl}), mapPoints) %}
{% endif %}
{% endif %}
{% endfor %}
{% if mapPoints.length %}
{% endif %}
{% if checkins.length %}
Been
{% set grouped = checkins | groupby("name") %}
{% for groupName, groupItems in grouped %}
{% set checkin = groupItems[0] %}
{% if checkin.venueWebsiteUrl %}
{{ checkin.name }}
{% else %}
{{ checkin.name }}
{% endif %}
{% if groupItems | length > 1 and "Murnau" not in (checkin.locality or "") and "Garmisch" not in (checkin.locality or "") %}
{{ groupItems | length }}×
{% endif %}
{% if checkin.isPrivate %}(private){% endif %}
{% if checkin.locationText %}{{ checkin.locationText }}{% if checkin.postalCode %}, {{ checkin.postalCode }}{% endif %}{% elif checkin.postalCode %}{{ checkin.postalCode }}{% endif %}
{% if checkin.published %}
·
{% endif %}