private static List getSamplePlaces()

in car_app_library/showcase/common/src/main/java/androidx/car/app/sample/showcase/common/common/SamplePlaces.java [151:277]


    private static List<PlaceInfo> getSamplePlaces(@NonNull CarContext carContext) {
        List<PlaceInfo> places = new ArrayList<>();

        Location location1 = new Location(SamplePlaces.class.getSimpleName());
        location1.setLatitude(47.6696482);
        location1.setLongitude(-122.19950278);
        places.add(
                new PlaceInfo(
                        "Google Kirkland",
                        "747 6th St South, Kirkland, WA 98033",
                        "Tinted resource vector",
                        "+14257395600",
                        location1,
                        new PlaceMarker.Builder()
                                .setIcon(
                                        new CarIcon.Builder(
                                                IconCompat.createWithResource(
                                                        carContext,
                                                        R.drawable.ic_commute_24px))
                                                .setTint(CarColor.BLUE)
                                                .build(),
                                        PlaceMarker.TYPE_ICON)
                                .build()));

        Location location2 = new Location(SamplePlaces.class.getSimpleName());
        location2.setLatitude(47.6204588);
        location2.setLongitude(-122.1918818);
        places.add(
                new PlaceInfo(
                        "Google Bellevue",
                        "1120 112th Ave NE, Bellevue, WA 98004",
                        "Image resource bitmap",
                        "+14252301301",
                        location2,
                        new PlaceMarker.Builder()
                                .setIcon(
                                        new CarIcon.Builder(
                                                IconCompat.createWithResource(
                                                        carContext, R.drawable.ic_520))
                                                .build(),
                                        PlaceMarker.TYPE_IMAGE)
                                .build()));

        Location location3 = new Location(SamplePlaces.class.getSimpleName());
        location3.setLatitude(47.625567);
        location3.setLongitude(-122.336427);
        places.add(
                new PlaceInfo(
                        "Google South Lake Union",
                        "1021 Valley St, Seattle, WA 98109",
                        "Colored text marker",
                        "+12065311800",
                        location3,
                        new PlaceMarker.Builder().setLabel("SLU").setColor(CarColor.RED).build()));

        Location location4 = new Location(SamplePlaces.class.getSimpleName());
        location4.setLatitude(47.6490374);
        location4.setLongitude(-122.3527127);
        places.add(
                new PlaceInfo(
                        "Google Seattle",
                        "601 N 34th St, Seattle, WA 98103",
                        "Image bitmap",
                        "+12068761800",
                        location4,
                        new PlaceMarker.Builder()
                                .setIcon(
                                        new CarIcon.Builder(
                                                IconCompat.createWithBitmap(
                                                        BitmapFactory.decodeResource(
                                                                carContext.getResources(),
                                                                R.drawable.banana)))
                                                .build(),
                                        PlaceMarker.TYPE_IMAGE)
                                .build()));

        Location location5 = new Location(SamplePlaces.class.getSimpleName());
        location5.setLatitude(47.6490374);
        location5.setLongitude(-122.3527127);
        places.add(
                new PlaceInfo(
                        "Google Bothell",
                        "11831 North Creek Pkwy, Bothell, WA 98011",
                        "Text label",
                        "n/a",
                        location5,
                        new PlaceMarker.Builder().build()));

        // Some hosts may display more items in the list than others, so create 3 more items.
        Location location6 = new Location(SamplePlaces.class.getSimpleName());
        location6.setLatitude(47.5496056);
        location6.setLongitude(-122.2571713);
        places.add(
                new PlaceInfo(
                        "Seward Park",
                        "5900 Lake Washington Blvd S, Seattle, WA 98118",
                        "Text label",
                        "n/a",
                        location6,
                        new PlaceMarker.Builder().build()));

        Location location7 = new Location(SamplePlaces.class.getSimpleName());
        location7.setLatitude(47.5911456);
        location7.setLongitude(-122.2256602);
        places.add(
                new PlaceInfo(
                        "Luther Burbank Park",
                        "2040 84th Ave SE, Mercer Island, WA 98040",
                        "Text label",
                        "n/a",
                        location7,
                        new PlaceMarker.Builder().build()));

        Location location8 = new Location(SamplePlaces.class.getSimpleName());
        location8.setLatitude(47.6785932);
        location8.setLongitude(-122.2113821);
        places.add(
                new PlaceInfo(
                        "Heritage Park",
                        "111 Waverly Way, Kirkland, WA 98033",
                        "Text label",
                        "n/a",
                        location8,
                        new PlaceMarker.Builder().build()));

        return places;
    }