This project provides a sample webMethods CloudStreams Provider Project for Google Maps. The following APIs are available:
- Directions: The Google Maps Directions API is a service that calculates directions between locations. https://developers.google.com/maps/documentation/directions
- Distance matrix: The Google Maps Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations, based on the recommended route between start and end points. https://developers.google.com/maps/documentation/distance-matrix
- Elevation: The Google Maps Elevation API provides elevation data for all locations on the surface of the earth, including depth locations on the ocean floor (which return negative values). https://developers.google.com/maps/documentation/elevation
- Geocode: The Google Maps Geocoding API is a service that provides geocoding and reverse geocoding of addresses. https://developers.google.com/maps/documentation/geocoding
- Gelocation: The Google Maps Geolocation API returns a location and accuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect. https://developers.google.com/maps/documentation/geolocation
- Timezone:The Google Maps Time Zone API provides time offset data for locations on the surface of the earth. https://developers.google.com/maps/documentation/timezone
The project was developed and tested on the following installation:
- Integration Server 9.12
- CloudStreams Server 9.12
- Software AG Designer 9.12 with Service Development and CloudStreams Development
To install the project on your local development environment follow these steps.
- In Software AG Designer open
Window > Preferences
. - Navigate to
Software AG > CloudStreams Servers
. - Add your local Integration Server. If there is already an entry make sure username and password are correct by clicking the Test button.
- In Software AG Designer switch to the
CloudStreams Development
perspective. - Select File > Import and choose
Software AG > CloudStreams Provider Project
. Click Next. - Select the root of this repository as the Root Directory.
- Select the
Google Maps
project. - Check
Copy project into workspace
. - Click Finish.
- Expand the newly imported project.
- Right-click
com.softwareag.googleMaps
and select Deploy.
The CloudStreams Provider Project does not contain neccessary doctypes.
- Copy GoogleMaps.zip and GoogleMapsTests.zip to
<install_dir>/IntegrationServer/instances/<instance>/replicate/inbound
. - Open Integration Server Administration in your browser.
- Install both packages with
Install Inbound Releases
in Package Management.
To access Google APIs an API key is neccessary. Generate your API key here: https://console.developers.google.com/apis/credentials. Make sure all Google Maps APIs are enabled in your library by clicking and enabling each of them (https://console.developers.google.com/apis/library).
- Open Integration Server Administration in your browser.
- Navigate to
Solutions > CloudStreams > Providers > GoogleMaps
. - Select
GoogleMaps
from the Connector List.
You will find two (disabled) connections: GoogleMapsTest:apiConnection and GoogleMapsTest:mapsConnection. You need to modify both connections:
- Click the Edit button of the connection.
- Enter your Google API key in APIKey-field and save the changes.
- Enable the connection.
- In Software AG Designer switch to the
Service Development
perspective. - Expand the
GoogleMapsTests
package. - Run the
*Test
flow services you find in the subsequent directories.
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
For more information you can Ask a Question in the TECHcommunity Forums.
You can find additional information in the Software AG TECHcommunity.
Contact us at TECHcommunity if you have any questions.