Sign inSign up

danielpilla/qlik-cloud-directions

By danielpilla

Updated over 3 years ago

A directions service using the Google APIs to be used with the Advanced Analytics connector.

Image
1

108

danielpilla/qlik-cloud-directions repository overview

Port is 3051.

Requires the envrionment variable google_api_key to be set at runtime.

POST to /directions. Body should be an array such as:

[
        {
            "start": "boston, ma",
            "end": "philadelphia, pa",
            "mode":"driving",
            "response":"coordinates",
            "alternative":"false"
        }
]

response can be:

'all' - this will return every result in a single list so that you can parse within Qlik and save API calls
'coordinates' - can be used for a GeoAnalytics Line Map
'instructions' - these are step by step instructions
'durations' - these are each of the durations
'distances' - these are each of the distances
'duration' - this is the total duration in minutes
'distance' - this is the total distance in miles

POST to /waypoint_optimization. Body should be an array such as:

[
        {
            "start": "boston, ma",
            "end": "philadelphia, pa",
            "mode":"driving",
            "response":"route",
            "waypoints":"bostom, ma|philadelphia, pa|tampa, FL|pittsburgh, pa|pacific grove, ca"
        }
]

response can be:

'route' - can be used for a GeoAnalytics Line Map
'points' - returns a string of ordered points
'all' - returns routes, ordered points, and ordered location names so it can be parsed on the front to minimize calls

Tag summary

Content type

Image

Digest

sha256:2260d3eb4

Size

82.1 MB

Last updated

over 3 years ago

docker pull danielpilla/qlik-cloud-directions:initialpush