---
layout: layouts/been.njk
title: Where
permalink: /where/
description: AMy past check-ins.
withSidebar: true
leafletMap: true
---
{% set checkins = whereCheckins.checkins or [] %}
{% if checkins.length %}
{% set newest = checkins[0] %}
I'm currently in {% if newest.locality %}{{ newest.locality }}{% elif newest.locationText %}{{ newest.locationText }}{% else %}{{ newest.name }}{% endif %}.
{% endif %}
{% set mapPoints = [] %}
{% set homeSeenNames = [] %}
{% for c in checkins %}
{% if c.latitude and c.longitude %}
{% if c.name == "Murnau" or c.name == "Garmisch-Partenkirchen" %}
{% 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 checkin.name != "Murnau" and checkin.name != "Garmisch-Partenkirchen" %}
{{ 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 %}
{% endfor %}
{% else %}
No past check-ins found.
{% endif %}