@@ -501,6 +501,7 @@ def places_autocomplete(
501501 input_text ,
502502 session_token = None ,
503503 offset = None ,
504+ origin = None ,
504505 location = None ,
505506 radius = None ,
506507 language = None ,
@@ -525,6 +526,12 @@ def places_autocomplete(
525526 service will match on 'Goo'.
526527 :type offset: int
527528
529+ :param origin: The origin point from which to calculate straight-line distance
530+ to the destination (returned as distance_meters).
531+ If this value is omitted, straight-line distance will
532+ not be returned.
533+ :type origin: string, dict, list, or tuple
534+
528535 :param location: The latitude/longitude value for which you wish to obtain the
529536 closest, human-readable address.
530537 :type location: string, dict, list, or tuple
@@ -558,6 +565,7 @@ def places_autocomplete(
558565 input_text ,
559566 session_token = session_token ,
560567 offset = offset ,
568+ origin = origin ,
561569 location = location ,
562570 radius = radius ,
563571 language = language ,
@@ -611,6 +619,7 @@ def _autocomplete(
611619 input_text ,
612620 session_token = None ,
613621 offset = None ,
622+ origin = None ,
614623 location = None ,
615624 radius = None ,
616625 language = None ,
@@ -629,6 +638,8 @@ def _autocomplete(
629638 params ["sessiontoken" ] = session_token
630639 if offset :
631640 params ["offset" ] = offset
641+ if origin :
642+ params ["origin" ] = convert .latlng (origin )
632643 if location :
633644 params ["location" ] = convert .latlng (location )
634645 if radius :
0 commit comments