Example #1
0
def getTrips(day):
    logging.debug("Called timeline.getTrips/%s" % day)
    user_uuid = getUUID(request)
    force_refresh = request.query.get('refresh', False)
    logging.debug("user_uuid %s" % user_uuid)
    ret_geojson = timeline.get_trips_for_day(user_uuid, day, force_refresh)
    logging.debug("type(ret_geojson) = %s" % type(ret_geojson))
    ret_dict = {"timeline": ret_geojson}
    logging.debug("type(ret_dict) = %s" % type(ret_dict))
    return ret_dict
Example #2
0
def getTrips(day):
  logging.debug("Called timeline.getTrips/%s" % day)
  user_uuid=getUUID(request)
  force_refresh = request.query.get('refresh', False)
  logging.debug("user_uuid %s" % user_uuid)
  ret_geojson = timeline.get_trips_for_day(user_uuid, day, force_refresh)
  logging.debug("type(ret_geojson) = %s" % type(ret_geojson))
  ret_dict = {"timeline": ret_geojson}
  logging.debug("type(ret_dict) = %s" % type(ret_dict))
  return ret_dict