Module Import alias Import alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Num Assign NameStore TupleLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad TupleLoad Num Num NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareLt Call NameLoad NameLoad Num body Assign NameStore Num Assign NameStore Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad While CompareGtE BinOpSub NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpMult Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore NameStore NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore BinOpAdd SubscriptLoad NameLoad Index NameLoad Str For NameStore NameLoad body If CompareGtE Call NameLoad NameLoad NameLoad body Break If CompareLt NameLoad NameLoad body Break Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad For NameStore NameLoad body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list
N/A N/A logging N/A math google.appengine.ext db google.appengine.ext.db djangoforms N/A geobox N/A RADIUS 6378100 N/A GEOBOX_CONFIGS N/A N/A 4 5 True N/A 3 2 True N/A 3 8 False N/A 3 16 False N/A 2 5 False N/A _DAY_DICTIONARY N/A Monday Tuesday Wednesday Thursday Friday Saturday Sunday hr_mon hr_tues hr_weds hr_thurs hr_fri hr_sat hr_sun _make_hours N/A N/A store_hours N/A N/A N/A Store hours is a dictionary that maps a DOW to different open/close times
     Since it's easy to represent disjoing hours, we'll do this by default
     Such as, if a store is open from 11am-2pm and then 5pm-10pm
     We'll slice the times in to a list of floats representing 30 minute intevals
     So for monday, let's assume we have the store hours from 10am - 3pm
     We represent this as
     monday = [10.0, 10.5, 11.0, 11.5, 12.0, 12.5, 13.0, 13.5, 14.0, 14.5]
   N/A week_hrs N/A N/A dow N/A N/A store_hours keys N/A N/A dow_hours N/A N/A hour_set N/A store_hours N/A dow N/A N/A N/A N/A len hour_set 2 N/A N/A open_hr 0.0 N/A close_hr 24.0 N/A N/A open_hr N/A float N/A hour_set N/A 0 N/A close_hr N/A float N/A hour_set N/A 1 N/A N/A close_hr open_hr N/A N/A tmp close_hr N/A close_hr open_hr N/A open_hr tmp N/A current_hr_it open_hr N/A N/A N/A close_hr current_hr_it 0.5 N/A N/A N/A N/A dow_hours append current_hr_it N/A current_hr_it 0.5 N/A N/A week_hrs N/A dow dow_hours N/A week_hrs N/A _earth_distance N/A N/A lat1 lon1 lat2 lon2 N/A N/A N/A N/A lat1 lon1 N/A N/A N/A math radians N/A float lat1 N/A N/A math radians N/A float lon1 N/A N/A lat2 lon2 N/A N/A N/A math radians N/A float lat2 N/A N/A math radians N/A float lon2 N/A N/A RADIUS N/A N/A math acos N/A N/A N/A N/A math sin lat1 N/A N/A math sin lat2 N/A N/A N/A N/A math cos lat1 N/A N/A math cos lat2 N/A N/A math cos N/A lon2 lon1 N/A Store N/A N/A db Model N/A N/A name N/A N/A db StringProperty N/A pretty_address N/A N/A db TextProperty N/A pretty_description N/A N/A db TextProperty N/A pretty_hours N/A N/A db TextProperty N/A location N/A N/A db GeoPtProperty N/A geoboxes N/A N/A db StringListProperty N/A hr_mon N/A N/A db ListProperty float N/A hr_tues N/A N/A db ListProperty float N/A hr_weds N/A N/A db ListProperty float N/A hr_thurs N/A N/A db ListProperty float N/A hr_fri N/A N/A db ListProperty float N/A hr_sat N/A N/A db ListProperty float N/A hr_sun N/A N/A db ListProperty float N/A holidays N/A N/A db StringListProperty N/A categories N/A N/A db StringListProperty N/A phone_numbers N/A N/A db StringProperty add N/A N/A self N/A kwargs N/A N/A lat N/A N/A kwargs pop lat N/A lon N/A N/A kwargs pop lon N/A location N/A N/A db GeoPt lat lon N/A name N/A kwargs N/A name N/A new_store N/A Store name name location location N/A all_boxes N/A N/A N/A new_store pretty_address N/A kwargs N/A address N/A N/A resolution slice use_set GEOBOX_CONFIGS N/A N/A use_set N/A N/A N/A N/A all_boxes extend N/A N/A geobox compute_set lat lon resolution slice N/A N/A N/A N/A all_boxes append N/A N/A geobox compute lat lon resolution slice N/A N/A new_store geoboxes all_boxes N/A store_hour_dict N/A _make_hours N/A kwargs N/A store_hours N/A N/A day prop N/A N/A _DAY_DICTIONARY iteritems N/A N/A N/A setattr new_store prop N/A store_hour_dict N/A day N/A N/A new_store categories N/A kwargs N/A categories N/A N/A new_store pretty_description N/A kwargs N/A description N/A N/A N/A new_store put N/A classmethod query N/A N/A self time dow lat lon max_results min_params N/A N/A N/A Queries for Muni stops repeatedly until max results or scope is reached.
    Args:
      system: The transit system to query.
      lat, lon: Coordinates of the agent querying.
      max_results: Maximum number of stops to find.
      min_params: Tuple (resolution, slice) of the minimum resolution to allow.

    Returns:
      List of (distance, MuniStop) tuples, ordered by minimum distance first.
      There will be no duplicates in these results. Distance is in meters.
     N/A found_stores N/A N/A dow_query_string N/A N/A _DAY_DICTIONARY N/A dow  = N/A params GEOBOX_CONFIGS N/A N/A N/A N/A len found_stores max_results N/A N/A N/A N/A params min_params N/A N/A N/A N/A resolution slice unused params N/A box N/A N/A geobox compute lat lon resolution slice N/A N/A N/A logging info Searching for box=%s at resolution=%s, slice=%s box resolution slice N/A query N/A N/A N/A N/A N/A N/A self all filter geoboxes = box filter dow_query_string time N/A results N/A N/A query fetch 50 N/A N/A N/A logging info Found %d results N/A len results N/A result results N/A N/A N/A N/A result name found_stores N/A N/A N/A found_stores N/A N/A result name result N/A stores_by_distance N/A N/A store N/A N/A found_stores itervalues N/A N/A distance N/A _earth_distance lat lon N/A N/A store location lat N/A N/A store location lon N/A N/A N/A stores_by_distance append N/A distance store N/A N/A N/A stores_by_distance sort N/A stores_by_distance N/A classmethod N/A UserProfile N/A N/A db Model N/A N/A user N/A N/A db UserProperty required True N/A CommentIndex N/A N/A db Model N/A N/A max_index N/A N/A db IntegerProperty default 0 required True N/A Comment N/A N/A db Model N/A N/A index N/A N/A db IntegerProperty required True N/A reviewer N/A N/A db ReferenceProperty UserProfile required True N/A store N/A N/A db ReferenceProperty Store required True N/A review N/A N/A db TextProperty required True N/A rating N/A N/A db IntegerProperty choices N/A set N/A 1 2 3 4 5 N/A posted_on N/A N/A db DateTimeProperty auto_now_add True N/A disabled N/A N/A db BooleanProperty default False N/A