Hi,
I have installed the Google Distance Matrix API from the forge. Setup a REST API to connect to Google Maps (maps.googleapis.com). I have the API keys and have successfully used them with the Maps and Get Directions.
I just can't figure out how to configure the Distance Matrix API settings to get it to work correctly.
What is the relationship between “Google Distance Matrix" forge component and the REST consumer?
Looking for help with the REST settings and the Action Logic.
Hope that makes sense and you can help.
Thanks,
Glenn
Hi Glenn,
I can help you get the Google Distance Matrix API working in OutSystems! Let me break down the relationship and configuration for you.
Understanding the Relationship
The Google Distance Matrix forge component typically provides a wrapper/abstraction layer that makes it easier to call the Google Distance Matrix API. However, you can also call it directly using a REST consumer.
Here's how they relate:
This is the link to the documentation:Distance Matrix API
For the REST API configuration:
Input Parameters (all as Query Parameters):
Example:https://maps.googleapis.com/maps/api/distancematrix/json?origins=San+Francisco&destinations=Los+Angeles&key=YOUR_API_KEY
I will provide you a small OML so you can see a implementation of this API