4.5 Google Places: Adding multiple place types

You have just added schools to your map. Now let’s add different place types. All that needs to be done is to add additional calls to the placesRequest function from within the initialize function. This methodology is much like the method employed in the createMarker function used in earlier tutorials. In the example below, I have added additional calls for banks and government offices. ┬áMake sure that you specify a different icon for each category type to be able to differentiate them on the map.

Here is a list of Google Places supported category types.

Leave a Reply