Skip to content

Commit 860e891

Browse files
committed
fix: remove occurrences of (removed) MapboxValhalla class
1 parent 8df4c7c commit 860e891

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routingpy/client_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class options(object):
4242
Example for overriding default values for `user_agent` and proxies:
4343
4444
>>> from routingpy.routers import options
45-
>>> from routingpy.routers import MapboxValhalla
45+
>>> from routingpy.routers import MapboxOSRM
4646
>>> options.default_user_agent = 'amazing_routing_app'
4747
>>> options.default_proxies = {'https': '129.125.12.0'}
48-
>>> router = MapboxValhalla(my_key)
48+
>>> router = MapboxOSRM(my_key)
4949
>>> print(router.client.headers)
50-
{'User-Agent': 'amazing_routing_app', 'Content-Type': 'application/json'}
50+
{'User-Agent': 'amazing_routing_app', 'Content-Type': 'application/x-www-form-urlencoded'}
5151
>>> print(router.client.proxies)
5252
{'https': '129.125.12.0'}
5353

routingpy/routers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_router_by_name(router_name):
6262
:param router_name: Name of the router as string.
6363
:type router_name: str
6464
65-
:rtype: Union[:class:`routingpy.routers.google.Google`, :class:`routingpy.routers.graphhopper.Graphhopper`, :class:`routingpy.routers.heremaps.HereMaps`, :class:`routingpy.routers.mapbox_osrm.MapBoxOSRM`, :class:`routingpy.routers.mapbox_valhalla.MapBoxValhalla`, :class:`routingpy.routers.openrouteservice.ORS`, :class:`routingpy.routers.osrm.OSRM`, :class:`routingpy.routers.otp_v2.OpenTripPlannerV2`, :class:`routingpy.routers.valhalla.Valhalla`]
65+
:rtype: Union[:class:`routingpy.routers.google.Google`, :class:`routingpy.routers.graphhopper.Graphhopper`, :class:`routingpy.routers.heremaps.HereMaps`, :class:`routingpy.routers.mapbox_osrm.MapBoxOSRM`, :class:`routingpy.routers.openrouteservice.ORS`, :class:`routingpy.routers.osrm.OSRM`, :class:`routingpy.routers.otp_v2.OpenTripPlannerV2`, :class:`routingpy.routers.valhalla.Valhalla`]
6666
6767
"""
6868
try:

0 commit comments

Comments
 (0)