@@ -96,7 +96,7 @@ def get_request_params_from_request_values(vals: dict) -> Optional[RequestParams
9696 years_ago = vals .get ("years_ago" , BE_CONST .DEFAULT_NUMBER_OF_YEARS_AGO )
9797 lang = vals .get ("lang" , "he" )
9898 location_text = location ["text" ]
99- gps = location [ "gps" ]
99+ gps = location . get ( "gps" , {})
100100 location_info = location ["data" ]
101101
102102 if location_info is None :
@@ -223,9 +223,7 @@ def extract_road_segment_location(road_segment_id):
223223 data ["road_segment_name" ] = road_segment_name
224224 data ["road_segment_id" ] = int (road_segment_id )
225225 text = get_road_segment_location_text (road1 , road_segment_name )
226- # fake gps - todo: fix
227- gps = {"lat" : 32.825610 , "lon" : 35.165395 }
228- return {"name" : "location" , "data" : data , "gps" : gps , "text" : text }
226+ return {"name" : "location" , "data" : data , "text" : text }
229227
230228
231229# todo: fill both codes and names into location
@@ -236,9 +234,7 @@ def extract_street_location(input_vals: dict):
236234 for k in ["yishuv_name" , "yishuv_symbol" , "street1" , "street1_hebrew" ]:
237235 data [k ] = vals [k ]
238236 text = get_street_location_text (vals ["yishuv_name" ], vals ["street1_hebrew" ])
239- # fake gps - todo: fix
240- gps = {"lat" : 32.825610 , "lon" : 35.165395 }
241- return {"name" : "location" , "data" : data , "gps" : gps , "text" : text }
237+ return {"name" : "location" , "data" : data , "text" : text }
242238
243239
244240def extract_street_location_suggestion_version (input_vals : dict ):
@@ -274,12 +270,9 @@ def extract_non_urban_intersection_location(input_vals: dict):
274270 data = {"resolution" : BE_CONST .ResolutionCategories .SUBURBAN_JUNCTION }
275271 for k in ["non_urban_intersection" , "non_urban_intersection_hebrew" , "road1" , "road2" ]:
276272 data [k ] = vals [k ]
277- # fake gps - todo: fix
278- gps = {"lat" : 32.825610 , "lon" : 35.165395 }
279273 return {
280274 "name" : "location" ,
281275 "data" : data ,
282- "gps" : gps ,
283276 "text" : vals ["non_urban_intersection_hebrew" ],
284277 }
285278
0 commit comments