def snap_to_roads(client, path, interpolate=False):
 params = {'path': convert.location_list(path)}
 if interpolate:
  params['interpolate'] = 'true'
 return client._get('/v1/snapToRoads', params, base_url=_ROADS_BASE_URL, accepts_clientid=False, extract_body=_roads_extract).get('snappedPoints', [])

def snap_to_roads ( client , path , interpolate = False ) : params = { 'path' : convert . location_list ( path ) } if interpolate : params [ 'interpolate' ] = 'true' return client . _get ( '/v1/snapToRoads' , params , base_url = _ROADS_BASE_URL , accepts_clientid = False , extract_body = _roads_extract ) . get ( 'snappedPoints' , [ ] )
snaps a path to the most likely roads travelled .