herepy 3.6.1__tar.gz → 3.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {herepy-3.6.1 → herepy-3.6.2}/PKG-INFO +1 -1
- {herepy-3.6.1 → herepy-3.6.2}/herepy/__init__.py +1 -1
- {herepy-3.6.1 → herepy-3.6.2}/herepy/routing_api.py +2 -2
- {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/PKG-INFO +1 -1
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_routing_api.py +22 -0
- {herepy-3.6.1 → herepy-3.6.2}/COPYING +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/LICENSE +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/MANIFEST.in +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/NOTICE +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/README.rst +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/destination_weather_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/error.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/ev_charging_stations_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/fleet_telematics_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_autocomplete_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_reverse_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/here_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/here_enum.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/isoline_routing_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/map_image_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/map_tile_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/mercator_projection.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/models.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/objects.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/places_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/platform/__init__.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/platform/tour_planning_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/polling.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/public_transit_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/py.typed +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/rme_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/traffic_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/utils.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy/vector_tile_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/SOURCES.txt +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/dependency_links.txt +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/requires.txt +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/top_level.txt +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/requirements.txt +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/setup.cfg +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/setup.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_destination_weather_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_enum.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_ev_charging_stations_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_fleet_telematics_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_autocomplete_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_reverse_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_isoline_routing_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_map_image_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_map_tile_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_mercator_projection.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_models.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_places_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_publictransit_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_rme_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_traffic_api.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_utils.py +0 -0
- {herepy-3.6.1 → herepy-3.6.2}/tests/test_vector_tile_api.py +0 -0
|
@@ -6,7 +6,7 @@ __author__ = "Abdullah Selek"
|
|
|
6
6
|
__email__ = "abdullahselek.os@gmail.com"
|
|
7
7
|
__copyright__ = "Copyright (c) 2017 Abdullah Selek"
|
|
8
8
|
__license__ = "MIT License"
|
|
9
|
-
__version__ = "3.6.
|
|
9
|
+
__version__ = "3.6.2"
|
|
10
10
|
__url__ = "https://github.com/abdullahselek/HerePy"
|
|
11
11
|
__download_url__ = "https://pypi.org/pypi/herepy"
|
|
12
12
|
__description__ = "A library that provides a Python interface to the HERE APIs"
|
|
@@ -448,7 +448,7 @@ class RoutingApi(HEREApi):
|
|
|
448
448
|
via_keys = []
|
|
449
449
|
if via:
|
|
450
450
|
for i, v in enumerate(via):
|
|
451
|
-
key = str.format("{0}{1}", "via", i)
|
|
451
|
+
key = str.format("{0}{1}_", "via", i)
|
|
452
452
|
via_keys.append(key)
|
|
453
453
|
data[key] = str.format("{0},{1}", v[0], v[1])
|
|
454
454
|
if departure_time:
|
|
@@ -845,7 +845,7 @@ class RoutingApi(HEREApi):
|
|
|
845
845
|
geocoder_response = geocoder_api.free_form(location_name)
|
|
846
846
|
coordinates = geocoder_response.items[0]["position"]
|
|
847
847
|
return [coordinates["lat"], coordinates["lng"]]
|
|
848
|
-
except
|
|
848
|
+
except HEREError as here_error:
|
|
849
849
|
raise WaypointNotFoundError(here_error.message)
|
|
850
850
|
|
|
851
851
|
@staticmethod
|
|
@@ -1179,3 +1179,25 @@ class RoutingApiTest(unittest.TestCase):
|
|
|
1179
1179
|
truck={"shippedHazardousGoods": ["explosive", "gas"]},
|
|
1180
1180
|
scooter={"allowHighway": "true"},
|
|
1181
1181
|
)
|
|
1182
|
+
|
|
1183
|
+
@responses.activate
|
|
1184
|
+
def test_route_v8_multiple_via_points(self):
|
|
1185
|
+
responses.add(
|
|
1186
|
+
responses.GET,
|
|
1187
|
+
"https://router.hereapi.com/v8/routes",
|
|
1188
|
+
"{}",
|
|
1189
|
+
status=200,
|
|
1190
|
+
match=[
|
|
1191
|
+
responses.matchers.query_param_matcher(
|
|
1192
|
+
{"via": ["41.9339,-87.9021"] * 11}, strict_match=False
|
|
1193
|
+
)
|
|
1194
|
+
],
|
|
1195
|
+
)
|
|
1196
|
+
response = self._api.route_v8(
|
|
1197
|
+
transport_mode=herepy.RoutingTransportMode.car,
|
|
1198
|
+
origin=[41.9798, -87.8801],
|
|
1199
|
+
destination=[41.9043, -87.9216],
|
|
1200
|
+
via=[[41.9339, -87.9021]] * 11,
|
|
1201
|
+
)
|
|
1202
|
+
self.assertTrue(response)
|
|
1203
|
+
self.assertIsInstance(response, herepy.RoutingResponseV8)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|