Member-only story
This is part 2 of how to add polylines to your react-native app using Google Directions API. This tutorial will focus on creating a project on Google cloud console and then using the Google directions API ( and the API key we retrieve from the Google cloud console) to draw a polyline from our users location to another destination.
First thing we need to do is create a project on Google cloud console. Google cloud console can be seen as a management tool for a lot of resources that can integrate into your software, it handles various aspects of applications including databases, API keys and client secrets.
We need to go to the link below.
You will need to sign in with one of your google accounts, once you have done this you should see a piece of text labelled “Select a project”, click this and a pop up should show listing your previous projects and allowing you to make another one (unless you have exceeded your allocated quota of projects). Click on “NEW PROJECT”