Show Directions

For rider apps to show the directions from pickup point to destination(s) in the Order Preview screen (The page that rider chooses the service) you have to enable the flag on the server side.

First, make sure the API key you have provided during the installation of the server side and in the Backend Maps API Key has the Directions API enabled.

Then on your server open the docker-compose.yaml file and find the branch named taxi-rider-api. Under this branch's environment sub-branch add a variable named SHOW_DIRECTIONS and set the value to true. Like this (See line 13):

taxi-rider-api:
    image: ridyio/ridy-rider-api
    restart: always
    depends_on:
      - "mysql"
      - "redis"
      - "taxi-admin-api"
    volumes:
      - ./img:/app/uploads
      - ./config-new:/app/config
    environment:
      - MYSQL_HOST=mysql
      - SHOW_DIRECTIONS=true
      - REDIS_HOST=redis

Once this change is applied and saved run a docker-compose up -d command so docker-compose would apply the changes to the updated services automatically. Now your apps should show directions on new orders from this point on.

Last updated