lasso.util

Functions

column_name_to_parts(c[, parameters])

get_shared_streets_intersection_hash(lat, long)

Calculated per:

hhmmss_to_datetime(hhmmss_str)

Creates a datetime time object from a string of hh:mm:ss

secs_to_datetime(secs)

Creates a datetime time object from a seconds from midnight

lasso.util.column_name_to_parts(c, parameters=None)[source]
lasso.util.get_shared_streets_intersection_hash(lat, long, osm_node_id=None)[source]
Calculated per:

https://github.com/sharedstreets/sharedstreets-js/blob/0e6d7de0aee2e9ae3b007d1e45284b06cc241d02/src/index.ts#L553-L565

Expected in/out
-93.0965985, 44.952112199999995 osm_node_id = 954734870

69f13f881649cb21ee3b359730790bb9

lasso.util.hhmmss_to_datetime(hhmmss_str)[source]

Creates a datetime time object from a string of hh:mm:ss

Parameters

hhmmss_str – string of hh:mm:ss

Returns

datetime.time object representing time

Return type

dt

lasso.util.secs_to_datetime(secs)[source]

Creates a datetime time object from a seconds from midnight

Parameters

secs – seconds from midnight

Returns

datetime.time object representing time

Return type

dt