@Override
    public Coordinate getCoordinate(long id) {
      long encoded = nodeLocationDb.get(id);
      if (encoded == LongLongMap.MISSING_VALUE) {
        throw new IllegalArgumentException("Missing location for node: " + id);
      }
      return new CoordinateXY(GeoUtils.decodeWorldX(encoded), GeoUtils.decodeWorldY(encoded));
    }
A thin layer on top of {@link LongLongMap} that decodes node locations stored as {@code long} values.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmReader.java