code: def get_route(self, npaths=1, time_delta=0):
          
  
          routing_server = self.ROUTING_SERVERS[self.region]
  
          url_options = {
              "from": "x:%s y:%s" % (self.start_coords["lon"], self.start_coords["lat"]),
              "to": "x:%s y:%s" % (self.end_coords["lon"], self.end_coords["lat"]),
              "at": time_delta,
              "returnJSON": "true",
              "returnGeometries": "true",
              "returnInstructions": "true",
              "timeout": 60000,
              "nPaths": npaths,
              "options": "AVOID_TRAILS:t",
          }
          if self.vehicle_type:
              url_options["vehicleType"] = self.vehicle_type
  
          response = requests.get(self.WAZE_URL + routing_server, params=url_options, headers=self.HEADERS)
          response.encoding = 'utf-8'
          response_json = self._check_response(response)
          if response_json:
              if 'error' in response_json:
                  raise WRCError(response_json.get("error"))
              else:
                  if response_json.get("alternatives"):
                      return [alt['response'] for alt in response_json['alternatives']]
                  if npaths > 1:
                      return [response_json['response']]
                  return response_json['response']
          else:
              raise WRCError("empty response")
docs: Get route data from waze