Place Icons

Place icons indicate the various types of places (for example coffee shops, libraries, and museums). You can request URLs for icons in PNG format, as well as the corresponding icon background color, with Current Place, and Place Details requests.

To request an icon image and background color for a place, include the following fields in your request:

  • Place.Field.ICON_URL
  • Place.Field.ICON_BACKGROUND_COLOR

The following examples demonstrate using the icon image and background color from a Current Place or Place Details request:

Java


    // Set the image view's background color to match the place's icon background color
    imageView.setBackgroundColor(place.getIconBackgroundColor());

    // Fetch the icon using Glide and set the result in the image view
    Glide.with(this)
        .load(place.getIconUrl())
        .into(imageView);

      

Kotlin


    // Set the image view's background color to match the place's icon background color
    imageView.setBackgroundColor(place.iconBackgroundColor)

    // Fetch the icon using Glide and set the result in the image view
    Glide.with(this)
        .load(place.iconUrl)
        .into(imageView)

      
This example uses the [Glide](https://github.com/bumptech/glide) image loading library, but you can use the image loading library of your choice.

Fields

Each Place icon contains these fields:

  • iconURL returns the base URL for a non-colored PNG icon.
  • iconBackgroundColor returns the default color code for the place's category.

Place icon and background color requests

The following tables show all of the available place icons by category. By default these display with a black glyph. The icon_background_color is dictated by the place's category.

Place category: Food and drink
(icon background color #FF9E67)
Bar
Bar,
Night club
Cafe
Cafe
Restaurant
Restaurant, Bakery
Place category: Retail
(icon background color #4B96F3)
Bookstore
Books, Clothing, Electronics, Jewelry, Shoes,
Shopping center/Mall
Convenience store
Convenience store
Grocery
Grocery, Supermarket
Pharmacy
Pharmacy
Place category: Services
(icon background color #909CE1)
ATM
ATM
Bank
Bank
Gas
Gas
Lodging
Lodging
Post office
Post office
Place category: Entertainment
(icon background color #13B5C7)
Aquarium, Tourist
Aquarium, Tourist
Golf
Golf
Historic
Historic
Movie
Movie
Museum
Museum
Theater
Theater
Place category: Transportation
(icon background color #10BDFF)
Airport
Airport
Bus
Bus, rideshare, taxi
Train/Rail
Train/Rail
Place category: Municipal/generic/religious
(icon background color #7B9EB0)
Cemetery
Cemetery
Civic building
Civic building
Library
Library
Monument
Monument
Parking
Parking
School (primary, secondary, university)
School (primary, secondary, university)
Worship (Buddhist)
Worship (Buddhist)
Worship (Christian)
Worship (Christian)
Worship (Hindu)
Worship (Hindu)
Worship (Islam)
Worship (Islam)
Worship (Jain)
Worship (Jain)
Worship (Jewish)
Worship (Jewish)
Worship (Sikh)
Worship (Sikh)
Generic business
Generic business
Place category: Outdoor
(icon background color #4DB546)
Boating
Boating
Camping
Camping
Park
Park
Stadium
Stadium
Zoo
Zoo
Place category: Emergency
(icon background color #F88181)
Hospital
Hospital
Police
Police