@VisibleForTesting
    static int toLocusType(final CacheType ct) {
        switch (ct) {
            case TRADITIONAL:
                return GeocachingData.CACHE_TYPE_TRADITIONAL;
            case MULTI:
                return GeocachingData.CACHE_TYPE_MULTI;
            case MYSTERY:
                return GeocachingData.CACHE_TYPE_MYSTERY;
            case LETTERBOX:
                return GeocachingData.CACHE_TYPE_LETTERBOX;
            case EVENT:
                return GeocachingData.CACHE_TYPE_EVENT;
            case MEGA_EVENT:
                return GeocachingData.CACHE_TYPE_MEGA_EVENT;
            case GIGA_EVENT:
                return GeocachingData.CACHE_TYPE_GIGA_EVENT;
            case EARTH:
                return GeocachingData.CACHE_TYPE_EARTH;
            case CITO:
                return GeocachingData.CACHE_TYPE_CACHE_IN_TRASH_OUT;
            case WEBCAM:
                return GeocachingData.CACHE_TYPE_WEBCAM;
            case VIRTUAL:
                return GeocachingData.CACHE_TYPE_VIRTUAL;
            case WHERIGO:
                return GeocachingData.CACHE_TYPE_WHERIGO;
            case COMMUN_CELEBRATION:
                return GeocachingData.CACHE_TYPE_COMMUNITY_CELEBRATION;
            case PROJECT_APE:
                return GeocachingData.CACHE_TYPE_PROJECT_APE;
            case GCHQ:
                return GeocachingData.CACHE_TYPE_GC_HQ;
            case GCHQ_CELEBRATION:
                return GeocachingData.CACHE_TYPE_GC_HQ_CELEBRATION;
            case GPS_EXHIBIT:
                return GeocachingData.CACHE_TYPE_GPS_ADVENTURE;
            case BLOCK_PARTY:
                return GeocachingData.CACHE_TYPE_GC_HQ_BLOCK_PARTY;
            case LOCATIONLESS:
                return GeocachingData.CACHE_TYPE_LOCATIONLESS;
            case ADVLAB:
                return GeocachingData.CACHE_TYPE_LAB_CACHE;
// Benchmark, not c:geo cache type - removed from geocaching.com
//            case BENCHMARK:
//                return GeocachingData.CACHE_TYPE_BENCHMARK;
// Maze Exhibit, not supported c:geo cache type
//            case MAZE_EXHIBIT:
//                return GeocachingData.CACHE_TYPE_MAZE_EXHIBIT;
// Waymark, not supported c:geo cache type
//            case WAYMARK:
//                return GeocachingData.CACHE_TYPE_WAYMARK;
            // special types are mapped to CACHE_TYPE_UNDEFINED
            case USER_DEFINED:
            case UNKNOWN:
            case ALL:
                return GeocachingData.CACHE_TYPE_UNDEFINED;
        }
        // special and unknown cache type
        return GeocachingData.CACHE_TYPE_UNDEFINED;
    }
This method constructs a {@code Point} for displaying in Locus

@return null, when the {@code Point} could not be constructed
main/src/main/java/cgeo/geocaching/apps/AbstractLocusApp.java