Refer to sources with "See:" in comments
This commit is contained in:
parent
f90f263dab
commit
c18fc2ba59
2 changed files with 17 additions and 17 deletions
|
|
@ -225,7 +225,7 @@ class Path(meta.Base):
|
|||
)
|
||||
# Without "alternatives" and "waypoints",
|
||||
# the `response` has exactly one "route" with exactly one "leg"
|
||||
# Source: https://developers.google.com/maps/documentation/directions/get-directions#Legs # noqa:E501
|
||||
# See: https://developers.google.com/maps/documentation/directions/get-directions#Legs # noqa:E501
|
||||
route = response[0]["legs"][0]
|
||||
|
||||
self.bicycle_distance = route["distance"]["value"]
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from rpy2.robjects import packages as r_packages
|
|||
|
||||
|
||||
# R's console messages would clutter the output => Suppress them
|
||||
# Source: https://stackoverflow.com/a/63220287
|
||||
# See: https://stackoverflow.com/a/63220287
|
||||
r_callbacks.consolewrite_print = lambda *_args, **_kwargs: None # pragma: no cover
|
||||
r_callbacks.consolewrite_warnerror = lambda *_args, **_kwargs: None # pragma: no cover
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue