![]() ![]() Postman gives us a user interface to authenticate with web services and save the results for future reference. ![]() To make API requests, we are going to use an application called Postman. API enabled on the Directions API section of your GCP project Make a Test Request You can check that everything is set up correctly by going back to the project page and making sure that there's a green tick next to the Manage button on the Directions API page. It should look something like this: GOOGLE_API_KEY: AIzaSyBpGrzvyLhnNl_BJ8e7G6LLauQ_SFsHyTI Once that's done, go to the Google Maps Platform > Credentials page and generate a new API key (see this video for a step by step walkthrough). Next, while still logged into the GCP Console, go to the project you just created and enable the Directions API. Google Maps standard pricing Find your Google Maps API Key Google Maps can get expensive, but the free $200 monthly credit is more than enough to cover the costs of running this tutorial. The first thing you need to do is sign up for a Google Cloud Platform (GCP) account, link a credit card and create a project (see this video for instructions). Sign up for a Google Cloud Platform Account What's the best route to take? Which stops should we visit first? Let's ask Google Maps. (D) 945 Broadway, San Diego, CA 92101, United States We need to find a route to locations A, B, C and D that minimizes driving timeĮnding at (end) 1485 E St, San Diego, CA 92101, United States. (C) 180 Broadway Suite 101, San Diego, CA 92101, United States (B) 707 Tenth Ave, San Diego, CA 92101, United States (A) 1200 Third Ave, San Diego, CA 92101, United States (start) 1337 India St, San Diego, CA 92101, United States In this tutorial, we'll use the Google Maps Directions API to create a delivery route from a warehouse in downtown San Diego at: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |