@@ -0,0 +1,1918 @@
+package com.routeme.utility.directions;%0A%0Aimport com.google.maps.model.DirectionsResult;%0Aimport com.google.maps.model.TravelMode;%0Aimport com.google.maps.model.Vehicle;%0Aimport com.routeme.model.NonTransitRoute;%0Aimport com.routeme.model.Route;%0Aimport com.routeme.model.TransitRoute;%0A%0Apublic class GoogleDirectionsUtility %7B%0A    protected static final String MUNICH_UNDERGROUND = %22U-bahn%22;%0A    protected static final String MUNICH_COMMUTER_RAIL = %22S-bahn%22;%0A    protected static final String MUNICH_TRAM_RAIL = %22tram%22;%0A    protected static final String MUNICH_BUS_ = %22Bus%22;%0A    protected static final String GOOGLE_UNDERGROUND = %22Subway%22;%0A    protected static final String GOOGLE_COMMUTER_RAIL = %22Commuter train%22;%0A    protected static final String GOOGLE_TRAM_RAIL = %22Tram%22;%0A    protected static final String GOOGLE_BUS_ = %22Bus%22;%0A    protected static final String GOOGLE_DIRECTIONS_API_KEY = %22AIzaSyBgegEmbuKzGU4RKWWqqUu8y6ra2a87ZtY%22;%0A%0A    public static String getMunichTransitVehicleName(Vehicle googleVehicle) %7B%0A        String googleVehicleName = googleVehicle.name;%0A        switch (googleVehicleName) %7B%0A        case GOOGLE_UNDERGROUND:%0A            return MUNICH_UNDERGROUND;%0A        case GOOGLE_COMMUTER_RAIL:%0A            return MUNICH_COMMUTER_RAIL;%0A        default:%0A            return googleVehicleName;%0A        %7D%0A    %7D%0A%0A    public static void printRouteResults(DirectionsResult result, TravelMode travelMode) %7B%0A        System.out.println(%22--%22);%0A        for (int i = 0; i %3C result.routes.length; i++) %7B%0A            Route route;%0A            if (travelMode == TravelMode.TRANSIT) %7B%0A                route = new TransitRoute(result.routes%5Bi%5D);%0A            %7D else %7B%0A                route = new NonTransitRoute(result.routes%5Bi%5D);%0A            %7D%0A            System.out.println(route.getPredictionIoId());%0A        %7D%0A    %7D%0A%0A    public static String getGoogleDirectionsApiKey() %7B%0A        return GOOGLE_DIRECTIONS_API_KEY;%0A    %7D%0A%7D%0A

Add google directions utility class