Including Google Places API in your web application

Utilizing an API key for the Google Places API Web Service is just as easy—if not easier—as generating the API key. To make use of a generated API key in your web application, all that is necessary is the inclusion of the following line of HTML in the markup of the page you want to make use of the web service:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key={{API_KEY}}&libraries=places"></script>

Ensure you replace {{API_KEY}} with your generated API key.

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.