Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from heremaps/via_waypoint_fix
Browse files Browse the repository at this point in the history
updated notebooks and docs
  • Loading branch information
sackh committed Jun 19, 2021
2 parents 40bc5da + e16e693 commit 3892a08
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/routing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"from datetime import datetime\n",
"\n",
"from here_location_services import LS\n",
"from here_location_services.config.routing_config import ROUTING_RETURN\n",
"from here_location_services.config.routing_config import ROUTING_RETURN, Via\n",
"from here_location_services.config.matrix_routing_config import Truck, SHIPPED_HAZARDOUS_GOODS\n",
"from here_map_widget import Map, Marker, GeoJSON, DomMarker, DomIcon"
]
Expand Down Expand Up @@ -133,7 +133,7 @@
"result = ls.car_route(\n",
" origin=[52.51375, 13.42462],\n",
" destination=[52.52332, 13.42800],\n",
" via=[(52.52426, 13.43000)],\n",
" via=[Via(lat=52.52426, lng=13.43000)],\n",
" return_results=[\n",
" ROUTING_RETURN.polyline,\n",
" ROUTING_RETURN.elevation,\n",
Expand Down
4 changes: 1 addition & 3 deletions docs/source/bicycle_route.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ Attribute Type
============================ ======================================================================================= ===
origin list A list of ``latitude`` and ``longitude`` of ``origin`` point of route.
destination list A list of ``latitude`` and ``longitude`` of ``destination`` point of route.
via list A list of tuples of ``latitude`` and ``longitude`` of ``via`` points.
via list A list of :class:`here_location_services.config.routing_config.Via` objects.
origin_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``origin``.
destination_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optional place options for ``destination``.
via_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``via``.
destination_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``destination``.
via_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``via``.
departure_time :func:`datetime.datetime` optional departure time.
routing_mode string optional routing mode is defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>`
alternatives int optional number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``.
Expand Down
4 changes: 1 addition & 3 deletions docs/source/car_route.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ Attribute Type
============================ ======================================================================================= ===
origin list A list of ``latitude`` and ``longitude`` of ``origin`` point of route.
destination list A list of ``latitude`` and ``longitude`` of ``destination`` point of route.
via list A list of tuples of ``latitude`` and ``longitude`` of ``via`` points.
via list A list of :class:`here_location_services.config.routing_config.Via` objects.
origin_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``origin``.
destination_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optional place options for ``destination``.
via_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``via``.
destination_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``destination``.
via_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``via``.
departure_time :func:`datetime.datetime` optional departure time.
routing_mode string optional routing mode is defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>`
alternatives int optional number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``.
Expand Down
4 changes: 1 addition & 3 deletions docs/source/pedestrian_route.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ Attribute Type
============================ ======================================================================================= ===
origin list A list of ``latitude`` and ``longitude`` of ``origin`` point of route.
destination list A list of ``latitude`` and ``longitude`` of ``destination`` point of route.
via list A list of tuples of ``latitude`` and ``longitude`` of ``via`` points.
via list A list of :class:`here_location_services.config.routing_config.Via` objects.
origin_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``origin``.
destination_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optional place options for ``destination``.
via_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``via``.
destination_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``destination``.
via_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``via``.
departure_time :func:`datetime.datetime` optional departure time.
routing_mode string optional routing mode is defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>`
alternatives int optional number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``.
Expand Down
4 changes: 1 addition & 3 deletions docs/source/scooter_route.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ Attribute Type
============================ ======================================================================================= ===
origin list A list of ``latitude`` and ``longitude`` of ``origin`` point of route.
destination list A list of ``latitude`` and ``longitude`` of ``destination`` point of route.
via list A list of tuples of ``latitude`` and ``longitude`` of ``via`` points.
via list A list of :class:`here_location_services.config.routing_config.Via` objects.
origin_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``origin``.
destination_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optional place options for ``destination``.
via_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``via``.
destination_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``destination``.
via_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``via``.
scooter :class:`Scooter <here_location_services.config.routing_config.Scooter>` optional additional attributes for scooter route.
departure_time :func:`datetime.datetime` optional departure time.
routing_mode string optional routing mode is defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>`
Expand Down
4 changes: 1 addition & 3 deletions docs/source/truck_route.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ Attribute Type
============================ ======================================================================================= ===
origin list A list of ``latitude`` and ``longitude`` of ``origin`` point of route.
destination list A list of ``latitude`` and ``longitude`` of ``destination`` point of route.
via list A list of tuples of ``latitude`` and ``longitude`` of ``via`` points.
via list A list of :class:`here_location_services.config.routing_config.Via` objects.
origin_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``origin``.
destination_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optional place options for ``destination``.
via_place_options :class:`PlaceOptions <here_location_services.config.routing_config.PlaceOptions>` optinal place options for ``via``.
destination_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``destination``.
via_waypoint_options :class:`WayPointOptions <here_location_services.config.routing_config.WayPointOptions>` optional way point options for ``via``.
departure_time :func:`datetime.datetime` optional departure time.
routing_mode string optional routing mode is defined in :attr:`ROUTING_MODE <here_location_services.config.routing_config.ROUTING_MODE>`
alternatives int optional number of alternative routes to return aside from the optimal route. default value is ``0`` and maximum is ``6``.
Expand Down

0 comments on commit 3892a08

Please sign in to comment.