From 4d46b208bbdce0ad785029b3bf012c71c0333f35 Mon Sep 17 00:00:00 2001 From: Natalie Schultz <90212258+nataliejschultz@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:19:04 -0600 Subject: [PATCH] Removing ground truth Removing the ground truth file + fixing a syntax error in my last commit. --- .../net/ext_service/geocoder/nominatim.py | 2 +- .../shankari_2023-04-14.ground_truth | 1844 ----------------- 2 files changed, 1 insertion(+), 1845 deletions(-) delete mode 100644 emission/tests/data/real_examples/shankari_2023-04-14.ground_truth diff --git a/emission/net/ext_service/geocoder/nominatim.py b/emission/net/ext_service/geocoder/nominatim.py index d9483ac7a..2c6714cd6 100644 --- a/emission/net/ext_service/geocoder/nominatim.py +++ b/emission/net/ext_service/geocoder/nominatim.py @@ -16,7 +16,7 @@ OPENSTREETMAP_QUERY_URL_env = os.environ.get("OPENSTREETMAP_QUERY_URL", "") logging.info(f"OPENSTREETMAP_QUERY_URL_env: {OPENSTREETMAP_QUERY_URL_env}") OPENSTREETMAP_QUERY_URL = OPENSTREETMAP_QUERY_URL_env if OPENSTREETMAP_QUERY_URL_env != "" else "http://nominatim.openstreetmap.org" - print("Open Street Map URL not configured, defaulting to nominatim:") if OPENSTREETMAP_QUERY_URL = "http://nominatim.openstreetmap.org" elif print "Open Street Map URL configured!" + print("Open Street Map URL not configured, defaulting to nominatim:") if OPENSTREETMAP_QUERY_URL == "http://nominatim.openstreetmap.org" elif print "Open Street Map URL configured!" except: print("URL not configured, place decoding must happen on the client") diff --git a/emission/tests/data/real_examples/shankari_2023-04-14.ground_truth b/emission/tests/data/real_examples/shankari_2023-04-14.ground_truth deleted file mode 100644 index d3b93968a..000000000 --- a/emission/tests/data/real_examples/shankari_2023-04-14.ground_truth +++ /dev/null @@ -1,1844 +0,0 @@ -{ - "_id": { - "$oid": "64beeb60d2708245936b5081" - }, - "metadata": { - "write_ts": 1690233696.126325, - "type": "document", - "key": "diary/trips-2023-04-14" - }, - "user_id": { - "$uuid": "103c0fe6d1664e86b7048e577bfaefc0" - }, - "data": [ - { - "type": "FeatureCollection", - "properties": { - "source": "DwellSegmentationTimeFilter", - "end_ts": 1681524402.187, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 42, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:06:42.187000-07:00", - "end_loc": { - "type": "Point", - "coordinates": [ - -122.0146426, - 37.40543 - ] - }, - "raw_trip": { - "$oid": "64beeb5a9bf6a224ab5c5007" - }, - "start_ts": 1681523457.729, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 18, - "minute": 50, - "second": 57, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T18:50:57.729000-07:00", - "start_loc": { - "type": "Point", - "coordinates": [ - -122.0876437, - 37.3884711 - ] - }, - "duration": 944.4579999446869, - "distance": 8436.035361303364, - "start_place": { - "$oid": "64beeb5e9bf6a224ab5c50a6" - }, - "end_place": { - "$oid": "64beeb5f9bf6a224ab5c50a8" - }, - "cleaned_trip": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "inferred_labels": [], - "inferred_trip": { - "$oid": "64beeb5e9bf6a224ab5c5096" - }, - "expectation": { - "to_label": true - }, - "confidence_threshold": 0.55, - "expected_trip": { - "$oid": "64beeb5e9bf6a224ab5c50a1" - }, - "inferred_section_summary": { - "distance": { - "BUS": 6725.254442627671, - "WALKING": 207.43176634987907 - }, - "duration": { - "BUS": 748.4649999141693, - "WALKING": 100.99500012397766 - }, - "count": { - "BUS": 2, - "WALKING": 2 - } - }, - "cleaned_section_summary": { - "distance": { - "BICYCLING": 2005.708876065261, - "IN_VEHICLE": 4913.9869985030455, - "ON_FOOT": 12.990334409243507 - }, - "duration": { - "BICYCLING": 570.4630000591278, - "IN_VEHICLE": 249.00099992752075, - "ON_FOOT": 29.996000051498413 - }, - "count": { - "BICYCLING": 2, - "IN_VEHICLE": 1, - "ON_FOOT": 1 - } - }, - "user_input": {}, - "additions": [], - "feature_type": "trip" - }, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0876437, - 37.3884711 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c5006" - }, - { - "$oid": "64beeb5a9bf6a224ab5c5006" - } - ], - "display_name": "High School Way, Mountain View", - "starting_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a7" - }, - "exit_ts": 1681523457.729, - "exit_fmt_time": "2023-04-14T18:50:57.729000-07:00", - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 18, - "minute": 50, - "second": 57, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "cleaned_place": { - "$oid": "64beeb5c9bf6a224ab5c5081" - }, - "user_input": {}, - "additions": [], - "feature_type": "start_place" - }, - "id": "64beeb5e9bf6a224ab5c50a6" - }, - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0146426, - 37.40543 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "enter_ts": 1681524402.187, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 42, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:06:42.187000-07:00", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c5008" - }, - { - "$oid": "64beeb5a9bf6a224ab5c5008" - } - ], - "display_name": "Persian Drive, Sunnyvale", - "ending_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a7" - }, - "starting_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a9" - }, - "exit_ts": 1681526851.4806926, - "exit_fmt_time": "2023-04-14T19:47:31.480693-07:00", - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 47, - "second": 31, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "duration": 2449.293692588806, - "cleaned_place": { - "$oid": "64beeb5d9bf6a224ab5c5082" - }, - "user_input": {}, - "additions": [], - "feature_type": "end_place" - }, - "id": "64beeb5f9bf6a224ab5c50a8" - }, - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0722204, - 37.3822512 - ], - [ - -122.0587201, - 37.3867031 - ] - ] - }, - "properties": { - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "source": "SmoothedHighConfidenceMotion", - "ending_section": { - "$oid": "64beeb5b9bf6a224ab5c5024" - }, - "starting_section": { - "$oid": "64beeb5b9bf6a224ab5c5037" - }, - "enter_ts": 1681523957.193, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 18, - "minute": 59, - "second": 17, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T18:59:17.193000-07:00", - "enter_loc": { - "type": "Point", - "coordinates": [ - -122.0722204, - 37.3822512 - ] - }, - "exit_ts": 1681524013.183, - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 0, - "second": 13, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "exit_fmt_time": "2023-04-14T19:00:13.183000-07:00", - "exit_loc": { - "type": "Point", - "coordinates": [ - -122.0587201, - 37.3867031 - ] - }, - "duration": 55.99000000953674, - "distance": 1291.437818083854, - "feature_type": "stop" - }, - "id": "64beeb5b9bf6a224ab5c504a" - }, - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0111033, - 37.4056086 - ], - [ - -122.0131203, - 37.4058381 - ] - ] - }, - "properties": { - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "source": "SmoothedHighConfidenceMotion", - "ending_section": { - "$oid": "64beeb5b9bf6a224ab5c5037" - }, - "starting_section": { - "$oid": "64beeb5b9bf6a224ab5c5042" - }, - "enter_ts": 1681524262.184, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 4, - "second": 22, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:04:22.184000-07:00", - "enter_loc": { - "type": "Point", - "coordinates": [ - -122.0111033, - 37.4056086 - ] - }, - "exit_ts": 1681524284.184, - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 4, - "second": 44, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "exit_fmt_time": "2023-04-14T19:04:44.184000-07:00", - "exit_loc": { - "type": "Point", - "coordinates": [ - -122.0131203, - 37.4058381 - ] - }, - "duration": 22.0, - "distance": 179.97623656834477, - "feature_type": "stop" - }, - "id": "64beeb5b9bf6a224ab5c504b" - }, - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0145194, - 37.4057973 - ], - [ - -122.0145359, - 37.4055104 - ] - ] - }, - "properties": { - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "source": "SmoothedHighConfidenceMotion", - "ending_section": { - "$oid": "64beeb5b9bf6a224ab5c5042" - }, - "starting_section": { - "$oid": "64beeb5b9bf6a224ab5c5047" - }, - "enter_ts": 1681524355.183, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 5, - "second": 55, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:05:55.183000-07:00", - "enter_loc": { - "type": "Point", - "coordinates": [ - -122.0145194, - 37.4057973 - ] - }, - "exit_ts": 1681524372.191, - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 12, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "exit_fmt_time": "2023-04-14T19:06:12.191000-07:00", - "exit_loc": { - "type": "Point", - "coordinates": [ - -122.0145359, - 37.4055104 - ] - }, - "duration": 17.007999897003174, - "distance": 31.935097673615335, - "feature_type": "stop" - }, - "id": "64beeb5b9bf6a224ab5c504c" - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0876437, - 37.3884711 - ], - [ - -122.08807112092548, - 37.38820739648037 - ], - [ - -122.08808638894617, - 37.38817836300783 - ], - [ - -122.08807539905901, - 37.3881672241864 - ], - [ - -122.08790238120781, - 37.38819586786074 - ], - [ - -122.08807637493946, - 37.388163176312254 - ], - [ - -122.08787268699396, - 37.38820144918086 - ], - [ - -122.08774602754416, - 37.38823162306956 - ], - [ - -122.08546533349052, - 37.38653914878057 - ], - [ - -122.08348415598672, - 37.38522617050288 - ], - [ - -122.08208743291878, - 37.38460317394056 - ], - [ - -122.08069070985087, - 37.38398017737824 - ], - [ - -122.07929398678293, - 37.38335718081592 - ], - [ - -122.07789726371499, - 37.3827341842536 - ], - [ - -122.07650054064706, - 37.38211118769128 - ], - [ - -122.07510381757912, - 37.38148819112896 - ], - [ - -122.0737070945112, - 37.38086519456664 - ], - [ - -122.0722204, - 37.3822512 - ] - ] - }, - "properties": { - "times": [ - 1681523457.729, - 1681523487.729, - 1681523517.729, - 1681523547.729, - 1681523577.729, - 1681523607.729, - 1681523637.729, - 1681523667.729, - 1681523697.729, - 1681523727.729, - 1681523757.729, - 1681523787.729, - 1681523817.729, - 1681523847.729, - 1681523877.729, - 1681523907.729, - 1681523937.729, - 1681523957.193 - ], - "timestamps": [ - 1681523457729, - 1681523487729, - 1681523517729, - 1681523547729, - 1681523577729, - 1681523607729, - 1681523637729, - 1681523667729, - 1681523697729, - 1681523727729, - 1681523757729, - 1681523787729, - 1681523817729, - 1681523847729, - 1681523877729, - 1681523907729, - 1681523937729, - 1681523957193 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "start_ts": 1681523457.729, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 18, - "minute": 50, - "second": 57, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T18:50:57.729000-07:00", - "end_ts": 1681523957.193, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 18, - "minute": 59, - "second": 17, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T18:59:17.193000-07:00", - "duration": 499.46399998664856, - "speeds": [ - 0.0, - 1.5936613757983011, - 0.11662840093121923, - 0.05245964352131441, - 0.520473912262354, - 0.5265367421814731, - 0.6163986121303995, - 0.3894126060080392, - 9.190510181227788, - 7.597806500601622, - 4.7172837203831035, - 4.717313523275937, - 4.717343325840512, - 4.7173731280768205, - 4.717402929875367, - 4.717432731382129, - 4.717462532451113, - 10.403948226731822 - ], - "distances": [ - 0.0, - 47.80984127394903, - 3.498852027936577, - 1.5737893056394323, - 15.614217367870618, - 15.79610226544419, - 18.491958363911984, - 11.682378180241175, - 275.71530543683366, - 227.93419501804865, - 141.5185116114931, - 141.51940569827812, - 141.52029977521536, - 141.52119384230463, - 141.522087896261, - 141.52298194146385, - 141.5238759735334, - 202.5024481462005 - ], - "distance": 1811.2674441246254, - "sensed_mode": "MotionTypes.BICYCLING", - "end_stop": { - "$oid": "64beeb5b9bf6a224ab5c504a" - }, - "feature_type": "section" - }, - "id": "64beeb5b9bf6a224ab5c5024" - } - ] - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0587201, - 37.3867031 - ], - [ - -122.05303642528504, - 37.39066707406994 - ], - [ - -122.04695058915776, - 37.39510525702585 - ], - [ - -122.04016912071418, - 37.39883429218553 - ], - [ - -122.03374563297236, - 37.401941716639854 - ], - [ - -122.02643148027789, - 37.403905178855325 - ], - [ - -122.01955562864183, - 37.405055186370504 - ], - [ - -122.01460181132659, - 37.4053236567702 - ], - [ - -122.0106982260715, - 37.40556924996123 - ], - [ - -122.0111033, - 37.4056086 - ] - ] - }, - "properties": { - "times": [ - 1681524013.183, - 1681524043.183, - 1681524073.183, - 1681524103.183, - 1681524133.183, - 1681524163.183, - 1681524193.183, - 1681524223.183, - 1681524253.183, - 1681524262.184 - ], - "timestamps": [ - 1681524013183, - 1681524043183, - 1681524073183, - 1681524103183, - 1681524133183, - 1681524163183, - 1681524193183, - 1681524223183, - 1681524253183, - 1681524262184 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "start_ts": 1681524013.183, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 0, - "second": 13, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T19:00:13.183000-07:00", - "end_ts": 1681524262.184, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 4, - "second": 22, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:04:22.184000-07:00", - "duration": 249.00099992752075, - "speeds": [ - 0.0, - 22.27177166104781, - 24.326601881260707, - 24.28562891180358, - 22.144743721567796, - 22.732076544342583, - 20.68857254206807, - 14.619389464891775, - 11.529247290850682, - 4.004670398656961 - ], - "distances": [ - 0.0, - 668.1531498314343, - 729.7980564378212, - 728.5688673541074, - 664.3423116470339, - 681.9622963302775, - 620.6571762620421, - 438.58168394675323, - 345.87741872552044, - 36.046037968055806 - ], - "distance": 4913.9869985030455, - "sensed_mode": "MotionTypes.IN_VEHICLE", - "start_stop": { - "$oid": "64beeb5b9bf6a224ab5c504a" - }, - "end_stop": { - "$oid": "64beeb5b9bf6a224ab5c504b" - }, - "feature_type": "section" - }, - "id": "64beeb5b9bf6a224ab5c5037" - } - ] - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0131203, - 37.4058381 - ], - [ - -122.0147512605602, - 37.40544896807188 - ], - [ - -122.0146154935284, - 37.40569172968102 - ], - [ - -122.0145194, - 37.4057973 - ] - ] - }, - "properties": { - "times": [ - 1681524284.184, - 1681524314.184, - 1681524344.184, - 1681524355.183 - ], - "timestamps": [ - 1681524284184, - 1681524314184, - 1681524344184, - 1681524355183 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "start_ts": 1681524284.184, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 4, - "second": 44, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T19:04:44.184000-07:00", - "end_ts": 1681524355.183, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 5, - "second": 55, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:05:55.183000-07:00", - "duration": 70.99900007247925, - "speeds": [ - 0.0, - 5.0139238352872955, - 0.9845914211804508, - 1.3170264706924346 - ], - "distances": [ - 0.0, - 150.41771505861885, - 29.537742635413526, - 14.485974246603176 - ], - "distance": 194.44143194063557, - "sensed_mode": "MotionTypes.BICYCLING", - "start_stop": { - "$oid": "64beeb5b9bf6a224ab5c504b" - }, - "end_stop": { - "$oid": "64beeb5b9bf6a224ab5c504c" - }, - "feature_type": "section" - }, - "id": "64beeb5b9bf6a224ab5c5042" - } - ] - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0145359, - 37.4055104 - ], - [ - -122.0146426, - 37.40543 - ] - ] - }, - "properties": { - "times": [ - 1681524372.191, - 1681524402.187 - ], - "timestamps": [ - 1681524372191, - 1681524402187 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c5022" - }, - "start_ts": 1681524372.191, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 12, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T19:06:12.191000-07:00", - "end_ts": 1681524402.187, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 42, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:06:42.187000-07:00", - "duration": 29.996000051498413, - "speeds": [ - 0.0, - 0.43306888874987154 - ], - "distances": [ - 0.0, - 12.990334409243507 - ], - "distance": 12.990334409243507, - "sensed_mode": "MotionTypes.ON_FOOT", - "start_stop": { - "$oid": "64beeb5b9bf6a224ab5c504c" - }, - "feature_type": "section" - }, - "id": "64beeb5b9bf6a224ab5c5047" - } - ] - } - ], - "id": "64beeb5f9bf6a224ab5c50a7" - }, - { - "type": "FeatureCollection", - "properties": { - "source": "DwellSegmentationTimeFilter", - "end_ts": 1681527196.182, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 53, - "second": 16, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:53:16.182000-07:00", - "end_loc": { - "type": "Point", - "coordinates": [ - -122.0137297, - 37.4053566 - ] - }, - "raw_trip": { - "$oid": "64beeb5a9bf6a224ab5c5009" - }, - "start_ts": 1681526851.4806926, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 47, - "second": 31, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T19:47:31.480693-07:00", - "start_loc": { - "type": "Point", - "coordinates": [ - -122.0146426, - 37.40543 - ] - }, - "duration": 344.70130729675293, - "distance": 344.300169162875, - "start_place": { - "$oid": "64beeb5f9bf6a224ab5c50a8" - }, - "end_place": { - "$oid": "64beeb5f9bf6a224ab5c50aa" - }, - "cleaned_trip": { - "$oid": "64beeb5b9bf6a224ab5c504d" - }, - "inferred_labels": [], - "inferred_trip": { - "$oid": "64beeb5e9bf6a224ab5c5099" - }, - "expectation": { - "to_label": true - }, - "confidence_threshold": 0.55, - "expected_trip": { - "$oid": "64beeb5e9bf6a224ab5c50a2" - }, - "inferred_section_summary": { - "distance": { - "WALKING": 344.300169162875 - }, - "duration": { - "WALKING": 344.70130729675293 - }, - "count": { - "WALKING": 1 - } - }, - "cleaned_section_summary": { - "distance": { - "ON_FOOT": 344.300169162875 - }, - "duration": { - "ON_FOOT": 344.70130729675293 - }, - "count": { - "ON_FOOT": 1 - } - }, - "user_input": {}, - "additions": [], - "feature_type": "trip" - }, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0146426, - 37.40543 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "enter_ts": 1681524402.187, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 6, - "second": 42, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:06:42.187000-07:00", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c5008" - }, - { - "$oid": "64beeb5a9bf6a224ab5c5008" - } - ], - "display_name": "Persian Drive, Sunnyvale", - "ending_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a7" - }, - "starting_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a9" - }, - "exit_ts": 1681526851.4806926, - "exit_fmt_time": "2023-04-14T19:47:31.480693-07:00", - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 47, - "second": 31, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "duration": 2449.293692588806, - "cleaned_place": { - "$oid": "64beeb5d9bf6a224ab5c5082" - }, - "user_input": {}, - "additions": [], - "feature_type": "start_place" - }, - "id": "64beeb5f9bf6a224ab5c50a8" - }, - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0137297, - 37.4053566 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "enter_ts": 1681527196.182, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 53, - "second": 16, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:53:16.182000-07:00", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c500a" - }, - { - "$oid": "64beeb5a9bf6a224ab5c500a" - } - ], - "display_name": "Persian Drive, Sunnyvale", - "ending_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a9" - }, - "starting_trip": { - "$oid": "64beeb5f9bf6a224ab5c50ab" - }, - "exit_ts": 1681528595.9927285, - "exit_fmt_time": "2023-04-14T20:16:35.992728-07:00", - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 16, - "second": 35, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "duration": 1399.8107285499573, - "cleaned_place": { - "$oid": "64beeb5d9bf6a224ab5c5083" - }, - "user_input": {}, - "additions": [], - "feature_type": "end_place" - }, - "id": "64beeb5f9bf6a224ab5c50aa" - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0146426, - 37.40543 - ], - [ - -122.0143397896216, - 37.40515688559744 - ], - [ - -122.01403697924322, - 37.40488377119488 - ], - [ - -122.01373416886481, - 37.40461065679232 - ], - [ - -122.01343135848643, - 37.40433754238976 - ], - [ - -122.01353713107865, - 37.40465013037489 - ], - [ - -122.01369125944407, - 37.404931950966294 - ], - [ - -122.01357871267858, - 37.40470313557329 - ], - [ - -122.01353736748432, - 37.404826822856215 - ], - [ - -122.01355486144665, - 37.40481021543341 - ], - [ - -122.01362093691034, - 37.40480345019843 - ], - [ - -122.01372879189795, - 37.405241703469386 - ], - [ - -122.0137297, - 37.4053566 - ] - ] - }, - "properties": { - "times": [ - 1681526851.4806926, - 1681526881.4806926, - 1681526911.4806926, - 1681526941.4806926, - 1681526971.4806926, - 1681527001.4806926, - 1681527031.4806926, - 1681527061.4806926, - 1681527091.4806926, - 1681527121.4806926, - 1681527151.4806926, - 1681527181.4806926, - 1681527196.182 - ], - "timestamps": [ - 1681526851481, - 1681526881481, - 1681526911481, - 1681526941481, - 1681526971481, - 1681527001481, - 1681527031481, - 1681527061481, - 1681527091481, - 1681527121481, - 1681527151481, - 1681527181481, - 1681527196182 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5b9bf6a224ab5c504d" - }, - "start_ts": 1681526851.4806926, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 47, - "second": 31, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T19:47:31.480693-07:00", - "end_ts": 1681527196.182, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 53, - "second": 16, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T19:53:16.182000-07:00", - "duration": 344.70130729675293, - "speeds": [ - 0.0, - 1.3489358167748144, - 1.348937964702563, - 1.34894011267664, - 1.3489422605864279, - 1.1997319842376997, - 1.1388839043935335, - 0.9105423646212568, - 0.4743334501386061, - 0.08026266482585705, - 0.1961557864982664, - 1.6551338930570902, - 0.8690494545552618 - ], - "distances": [ - 0.0, - 40.46807450324443, - 40.46813894107689, - 40.4682033802992, - 40.46826781759284, - 35.99195952713099, - 34.166517131806, - 27.316270938637704, - 14.230003504158184, - 2.4078799447757113, - 5.884673594947992, - 49.654016791712706, - 12.776163087492424 - ], - "distance": 344.300169162875, - "sensed_mode": "MotionTypes.ON_FOOT", - "feature_type": "section" - }, - "id": "64beeb5b9bf6a224ab5c504f" - } - ] - } - ], - "id": "64beeb5f9bf6a224ab5c50a9" - }, - { - "type": "FeatureCollection", - "properties": { - "source": "DwellSegmentationTimeFilter", - "end_ts": 1681529526.189, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 32, - "second": 6, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T20:32:06.189000-07:00", - "end_loc": { - "type": "Point", - "coordinates": [ - -122.0866399, - 37.3911049 - ] - }, - "raw_trip": { - "$oid": "64beeb5a9bf6a224ab5c500b" - }, - "start_ts": 1681528595.9927285, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 16, - "second": 35, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T20:16:35.992728-07:00", - "start_loc": { - "type": "Point", - "coordinates": [ - -122.0137297, - 37.4053566 - ] - }, - "duration": 930.1962714195251, - "distance": 9357.3566188629, - "start_place": { - "$oid": "64beeb5f9bf6a224ab5c50aa" - }, - "end_place": { - "$oid": "64beeb5f9bf6a224ab5c50ac" - }, - "cleaned_trip": { - "$oid": "64beeb5c9bf6a224ab5c505d" - }, - "inferred_labels": [], - "inferred_trip": { - "$oid": "64beeb5e9bf6a224ab5c509c" - }, - "expectation": { - "to_label": true - }, - "confidence_threshold": 0.55, - "expected_trip": { - "$oid": "64beeb5e9bf6a224ab5c50a3" - }, - "inferred_section_summary": { - "distance": { - "BUS": 9357.3566188629 - }, - "duration": { - "BUS": 930.1962714195251 - }, - "count": { - "BUS": 1 - } - }, - "cleaned_section_summary": { - "distance": { - "IN_VEHICLE": 9357.3566188629 - }, - "duration": { - "IN_VEHICLE": 930.1962714195251 - }, - "count": { - "IN_VEHICLE": 1 - } - }, - "user_input": {}, - "additions": [], - "feature_type": "trip" - }, - "features": [ - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0137297, - 37.4053566 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "enter_ts": 1681527196.182, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 19, - "minute": 53, - "second": 16, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T19:53:16.182000-07:00", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c500a" - }, - { - "$oid": "64beeb5a9bf6a224ab5c500a" - } - ], - "display_name": "Persian Drive, Sunnyvale", - "ending_trip": { - "$oid": "64beeb5f9bf6a224ab5c50a9" - }, - "starting_trip": { - "$oid": "64beeb5f9bf6a224ab5c50ab" - }, - "exit_ts": 1681528595.9927285, - "exit_fmt_time": "2023-04-14T20:16:35.992728-07:00", - "exit_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 16, - "second": 35, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "duration": 1399.8107285499573, - "cleaned_place": { - "$oid": "64beeb5d9bf6a224ab5c5083" - }, - "user_input": {}, - "additions": [], - "feature_type": "start_place" - }, - "id": "64beeb5f9bf6a224ab5c50aa" - }, - { - "type": "Feature", - "geometry": { - "type": "Point", - "coordinates": [ - -122.0866399, - 37.3911049 - ] - }, - "properties": { - "source": "DwellSegmentationTimeFilter", - "enter_ts": 1681529526.189, - "enter_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 32, - "second": 6, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "enter_fmt_time": "2023-04-14T20:32:06.189000-07:00", - "raw_places": [ - { - "$oid": "64beeb5a9bf6a224ab5c500c" - } - ], - "display_name": "South Shoreline Boulevard, Mountain View", - "ending_trip": { - "$oid": "64beeb5f9bf6a224ab5c50ab" - }, - "cleaned_place": { - "$oid": "64beeb5e9bf6a224ab5c5084" - }, - "user_input": {}, - "additions": [], - "feature_type": "end_place" - }, - "id": "64beeb5f9bf6a224ab5c50ac" - }, - { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "geometry": { - "type": "LineString", - "coordinates": [ - [ - -122.0137297, - 37.4053566 - ], - [ - -122.01209921201757, - 37.40695365456507 - ], - [ - -122.01080064606391, - 37.408252736472114 - ], - [ - -122.0108861889125, - 37.40830927783334 - ], - [ - -122.01087460945365, - 37.407541121743456 - ], - [ - -122.01340693154029, - 37.40623376266792 - ], - [ - -122.02001791816556, - 37.404543336054815 - ], - [ - -122.02774305947828, - 37.40294540637912 - ], - [ - -122.0351524592884, - 37.40063424311639 - ], - [ - -122.04229223176782, - 37.39738183714895 - ], - [ - -122.04899121972957, - 37.39324704562352 - ], - [ - -122.05532810696981, - 37.38902862547515 - ], - [ - -122.0624147425576, - 37.38652290483116 - ], - [ - -122.06905994366106, - 37.38332046599979 - ], - [ - -122.07300630902874, - 37.38052548568545 - ], - [ - -122.07604996139631, - 37.38194039490596 - ], - [ - -122.07835312934566, - 37.383071186431394 - ], - [ - -122.08175829392968, - 37.384621509210554 - ], - [ - -122.08327424809235, - 37.38551220774898 - ], - [ - -122.08354270944368, - 37.3857019353682 - ], - [ - -122.08521805955762, - 37.38649247522913 - ], - [ - -122.08791318881278, - 37.387855591311755 - ], - [ - -122.08616129153083, - 37.390508017238574 - ], - [ - -122.08471977135449, - 37.39289179606393 - ], - [ - -122.08499824234224, - 37.39279858847622 - ], - [ - -122.08506037025758, - 37.39301764923081 - ], - [ - -122.08641982236793, - 37.39160961684873 - ], - [ - -122.08657974658948, - 37.391122835648794 - ], - [ - -122.08649063446475, - 37.39109606966995 - ], - [ - -122.08648725668435, - 37.391026698670615 - ], - [ - -122.08659328613695, - 37.39106921047944 - ], - [ - -122.08663961307724, - 37.391104669920416 - ], - [ - -122.0866399, - 37.3911049 - ] - ] - }, - "properties": { - "times": [ - 1681528595.9927285, - 1681528625.9927285, - 1681528655.9927285, - 1681528685.9927285, - 1681528715.9927285, - 1681528745.9927285, - 1681528775.9927285, - 1681528805.9927285, - 1681528835.9927285, - 1681528865.9927285, - 1681528895.9927285, - 1681528925.9927285, - 1681528955.9927285, - 1681528985.9927285, - 1681529015.9927285, - 1681529045.9927285, - 1681529075.9927285, - 1681529105.9927285, - 1681529135.9927285, - 1681529165.9927285, - 1681529195.9927285, - 1681529225.9927285, - 1681529255.9927285, - 1681529285.9927285, - 1681529315.9927285, - 1681529345.9927285, - 1681529375.9927285, - 1681529405.9927285, - 1681529435.9927285, - 1681529465.9927285, - 1681529495.9927285, - 1681529525.9927285, - 1681529526.189 - ], - "timestamps": [ - 1681528595993, - 1681528625993, - 1681528655993, - 1681528685993, - 1681528715993, - 1681528745993, - 1681528775993, - 1681528805993, - 1681528835993, - 1681528865993, - 1681528895993, - 1681528925993, - 1681528955993, - 1681528985993, - 1681529015993, - 1681529045993, - 1681529075993, - 1681529105993, - 1681529135993, - 1681529165993, - 1681529195993, - 1681529225993, - 1681529255993, - 1681529285993, - 1681529315993, - 1681529345993, - 1681529375993, - 1681529405993, - 1681529435993, - 1681529465993, - 1681529495993, - 1681529525993, - 1681529526189 - ], - "source": "SmoothedHighConfidenceMotion", - "trip_id": { - "$oid": "64beeb5c9bf6a224ab5c505d" - }, - "start_ts": 1681528595.9927285, - "start_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 16, - "second": 35, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "start_fmt_time": "2023-04-14T20:16:35.992728-07:00", - "end_ts": 1681529526.189, - "end_local_dt": { - "year": 2023, - "month": 4, - "day": 14, - "hour": 20, - "minute": 32, - "second": 6, - "weekday": 4, - "timezone": "America/Los_Angeles" - }, - "end_fmt_time": "2023-04-14T20:32:06.189000-07:00", - "duration": 930.1962714195251, - "speeds": [ - 0.0, - 7.6213981132763005, - 6.148314141877715, - 0.32764242029645285, - 2.8473727711204915, - 8.892069022902515, - 20.44819826286732, - 23.503975472528317, - 23.437966934341073, - 24.234342807426906, - 24.98006687590666, - 24.3456191961507, - 22.843214004559282, - 22.888978416859246, - 15.569582696986913, - 10.3856316360863, - 7.973662440591373, - 11.558264970444249, - 5.55263899651342, - 1.0581253461225237, - 5.7384501057996, - 9.408774457801773, - 11.102703588817969, - 9.802333080717647, - 0.8898367190703618, - 0.8323049264270845, - 6.577468604237175, - 1.8647049091062264, - 0.2805480870008742, - 0.2573157725989944, - 0.3497462712503175, - 0.18943575469120896, - 0.18349452853567655 - ], - "distances": [ - 0.0, - 228.64194339828902, - 184.44942425633144, - 9.829272608893586, - 85.42118313361475, - 266.76207068707544, - 613.4459478860196, - 705.1192641758495, - 703.1390080302322, - 727.0302842228072, - 749.4020062771998, - 730.368575884521, - 685.2964201367785, - 686.6693525057774, - 467.0874809096074, - 311.56894908258903, - 239.2098732177412, - 346.7479491133275, - 166.5791698954026, - 31.743760383675713, - 172.15350317398799, - 282.2632337340532, - 333.08110766453905, - 294.0699924215294, - 26.695101572110854, - 24.969147792812535, - 197.32405812711525, - 55.94114727318679, - 8.416442610026225, - 7.7194731779698325, - 10.492388137509524, - 5.683072640736269, - 0.036014731590794734 - ], - "distance": 9357.3566188629, - "sensed_mode": "MotionTypes.IN_VEHICLE", - "feature_type": "section" - }, - "id": "64beeb5c9bf6a224ab5c505f" - } - ] - } - ], - "id": "64beeb5f9bf6a224ab5c50ab" - } - ] -} \ No newline at end of file