O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Google Places API service

Since we have already imported the updated scripts, setting up this new service should be a breeze for us now. Perform the following instructions to set up and test the GooglePlacesAPIService:

  1. Go back to the Unity editor. Drag the Map scene into the Hierarchy window from the Assets folder in the Project window.
  2. Expand the MapScene and Services object in the Hierarchy window.
  3. Right-click (press Ctrl and click on a Mac) on the Services object, and from the context menu select Create Empty. Rename the new object GooglePlacesAPI.
  4. Drag the GooglePlacesAPIService script from the Assets/FoodyGo/Scripts/Services folder and drop it onto the GooglePlacesAPI object in the Hierarchy or Inspector windows.
  5. Right-click (press ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required