@Override
    public void updateRoute(final String key, final IGeoItemSupplier track, final int color, final int width) {
        synchronized (cache) {
            CachedRoute c = cache.get(key);
            if (c == null) {
                c = new CachedRoute();
                cache.put(key, c);
            }
            c.track = null;
            if (track != null) {
                c.track = toLatLng(track);
                c.isHidden = track.isHidden();
            }
            c.color = color;
            c.width = width;
        }
        repaintRequired();
    }
maximum distance (in meters) up to which two points in the trail get connected by a drawn line
main/src/main/java/cgeo/geocaching/maps/google/v2/GooglePositionAndHistory.java