目录

1 Service Introduction

The route planning function provides a set of HTTPS-based APIs used to plan routes for walking, bicycling, and driving and calculate route distances. The APIs return route data in JSON format and provide the route planning capability.


This version provides the following route planning functions:

        The walking route planning API provides the function to plan a walking route within a distance of 100 kilometers.

        The bicycling route planning API provides the function to plan a bicycling route within a distance of 100 kilometers.

        The driving route planning API can:

        1. Return up to 3 routes for a request.

        2. Support up to 5 waypoints.

        3. Support planning for travel in the future.

        4. Plan routes based on real-time traffic conditions.

2 Usage Instruction

1. Before using the route planning function, you need to apply for an API key on the HUAWEI Developer website. The procedure is as follows:

   a. Sign in to AppGallery Connect and select My apps.

   b. Click your app and go to the Develop page.

   c. Find API key in the App information area and click Copy to copy the key.

Notice:
If the API key contains special characters, you need to encode it using encodeURI. For example, if the original API key is ABC/DFG+, the conversion result is ABC%2FDFG%2B.

2. The route planning service will be unavailable after the service call quota is used up.