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.
Files changed (60) hide show
  1. {herepy-3.6.1 → herepy-3.6.2}/PKG-INFO +1 -1
  2. {herepy-3.6.1 → herepy-3.6.2}/herepy/__init__.py +1 -1
  3. {herepy-3.6.1 → herepy-3.6.2}/herepy/routing_api.py +2 -2
  4. {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/PKG-INFO +1 -1
  5. {herepy-3.6.1 → herepy-3.6.2}/tests/test_routing_api.py +22 -0
  6. {herepy-3.6.1 → herepy-3.6.2}/COPYING +0 -0
  7. {herepy-3.6.1 → herepy-3.6.2}/LICENSE +0 -0
  8. {herepy-3.6.1 → herepy-3.6.2}/MANIFEST.in +0 -0
  9. {herepy-3.6.1 → herepy-3.6.2}/NOTICE +0 -0
  10. {herepy-3.6.1 → herepy-3.6.2}/README.rst +0 -0
  11. {herepy-3.6.1 → herepy-3.6.2}/herepy/destination_weather_api.py +0 -0
  12. {herepy-3.6.1 → herepy-3.6.2}/herepy/error.py +0 -0
  13. {herepy-3.6.1 → herepy-3.6.2}/herepy/ev_charging_stations_api.py +0 -0
  14. {herepy-3.6.1 → herepy-3.6.2}/herepy/fleet_telematics_api.py +0 -0
  15. {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_api.py +0 -0
  16. {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_autocomplete_api.py +0 -0
  17. {herepy-3.6.1 → herepy-3.6.2}/herepy/geocoder_reverse_api.py +0 -0
  18. {herepy-3.6.1 → herepy-3.6.2}/herepy/here_api.py +0 -0
  19. {herepy-3.6.1 → herepy-3.6.2}/herepy/here_enum.py +0 -0
  20. {herepy-3.6.1 → herepy-3.6.2}/herepy/isoline_routing_api.py +0 -0
  21. {herepy-3.6.1 → herepy-3.6.2}/herepy/map_image_api.py +0 -0
  22. {herepy-3.6.1 → herepy-3.6.2}/herepy/map_tile_api.py +0 -0
  23. {herepy-3.6.1 → herepy-3.6.2}/herepy/mercator_projection.py +0 -0
  24. {herepy-3.6.1 → herepy-3.6.2}/herepy/models.py +0 -0
  25. {herepy-3.6.1 → herepy-3.6.2}/herepy/objects.py +0 -0
  26. {herepy-3.6.1 → herepy-3.6.2}/herepy/places_api.py +0 -0
  27. {herepy-3.6.1 → herepy-3.6.2}/herepy/platform/__init__.py +0 -0
  28. {herepy-3.6.1 → herepy-3.6.2}/herepy/platform/tour_planning_api.py +0 -0
  29. {herepy-3.6.1 → herepy-3.6.2}/herepy/polling.py +0 -0
  30. {herepy-3.6.1 → herepy-3.6.2}/herepy/public_transit_api.py +0 -0
  31. {herepy-3.6.1 → herepy-3.6.2}/herepy/py.typed +0 -0
  32. {herepy-3.6.1 → herepy-3.6.2}/herepy/rme_api.py +0 -0
  33. {herepy-3.6.1 → herepy-3.6.2}/herepy/traffic_api.py +0 -0
  34. {herepy-3.6.1 → herepy-3.6.2}/herepy/utils.py +0 -0
  35. {herepy-3.6.1 → herepy-3.6.2}/herepy/vector_tile_api.py +0 -0
  36. {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/SOURCES.txt +0 -0
  37. {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/dependency_links.txt +0 -0
  38. {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/requires.txt +0 -0
  39. {herepy-3.6.1 → herepy-3.6.2}/herepy.egg-info/top_level.txt +0 -0
  40. {herepy-3.6.1 → herepy-3.6.2}/requirements.txt +0 -0
  41. {herepy-3.6.1 → herepy-3.6.2}/setup.cfg +0 -0
  42. {herepy-3.6.1 → herepy-3.6.2}/setup.py +0 -0
  43. {herepy-3.6.1 → herepy-3.6.2}/tests/test_destination_weather_api.py +0 -0
  44. {herepy-3.6.1 → herepy-3.6.2}/tests/test_enum.py +0 -0
  45. {herepy-3.6.1 → herepy-3.6.2}/tests/test_ev_charging_stations_api.py +0 -0
  46. {herepy-3.6.1 → herepy-3.6.2}/tests/test_fleet_telematics_api.py +0 -0
  47. {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_api.py +0 -0
  48. {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_autocomplete_api.py +0 -0
  49. {herepy-3.6.1 → herepy-3.6.2}/tests/test_geocoder_reverse_api.py +0 -0
  50. {herepy-3.6.1 → herepy-3.6.2}/tests/test_isoline_routing_api.py +0 -0
  51. {herepy-3.6.1 → herepy-3.6.2}/tests/test_map_image_api.py +0 -0
  52. {herepy-3.6.1 → herepy-3.6.2}/tests/test_map_tile_api.py +0 -0
  53. {herepy-3.6.1 → herepy-3.6.2}/tests/test_mercator_projection.py +0 -0
  54. {herepy-3.6.1 → herepy-3.6.2}/tests/test_models.py +0 -0
  55. {herepy-3.6.1 → herepy-3.6.2}/tests/test_places_api.py +0 -0
  56. {herepy-3.6.1 → herepy-3.6.2}/tests/test_publictransit_api.py +0 -0
  57. {herepy-3.6.1 → herepy-3.6.2}/tests/test_rme_api.py +0 -0
  58. {herepy-3.6.1 → herepy-3.6.2}/tests/test_traffic_api.py +0 -0
  59. {herepy-3.6.1 → herepy-3.6.2}/tests/test_utils.py +0 -0
  60. {herepy-3.6.1 → herepy-3.6.2}/tests/test_vector_tile_api.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: herepy
3
- Version: 3.6.1
3
+ Version: 3.6.2
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
5
  Home-page: https://github.com/abdullahselek/HerePy
6
6
  Download-URL: https://pypi.org/pypi/herepy
@@ -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.1"
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 (HEREError) as here_error:
848
+ except HEREError as here_error:
849
849
  raise WaypointNotFoundError(here_error.message)
850
850
 
851
851
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: herepy
3
- Version: 3.6.1
3
+ Version: 3.6.2
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
5
  Home-page: https://github.com/abdullahselek/HerePy
6
6
  Download-URL: https://pypi.org/pypi/herepy
@@ -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