def on_start(self): self.client.verify = False self.max_profiles = int(os.environ["VRP_MAX_PROFILES"] ) if "VRP_MAX_PROFILES" in os.environ else 1 self.max_locations = int(os.environ["VRP_MAX_LOCATIONS"] ) if "VRP_MAX_LOCATIONS" in os.environ else 10 self.api_key_url_suffix = common.get_api_key_url_suffix("?")
def on_start(self): self.client.verify = False self.api_key_url_suffix = common.get_api_key_url_suffix("&") # get points information, they need to be lon,lat query = common.get_points_query(self) points_str = urllib.parse.parse_qs(query)["point"] self.points = [[p.split(",")[1], p.split(",")[0]] for p in points_str]
def on_start(self): self.client.verify = False self.api_key_url_suffix = common.get_api_key_url_suffix("&") self.points_query = common.get_points_query(self)
def on_start(self): self.client.verify = False self.api_key_url_suffix = common.get_api_key_url_suffix("&")