From 8d3ac28cd553160fe038f11800d3903971726a00 Mon Sep 17 00:00:00 2001 From: Scott Lobdell Date: Thu, 28 May 2015 14:44:51 -0700 Subject: [PATCH] Fix near lat lon for REST client --- twilio/rest/resources/phone_numbers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/twilio/rest/resources/phone_numbers.py b/twilio/rest/resources/phone_numbers.py index 91b0042210..6b42aea30c 100644 --- a/twilio/rest/resources/phone_numbers.py +++ b/twilio/rest/resources/phone_numbers.py @@ -92,6 +92,11 @@ def list(self, type="local", country="US", region=None, postal_code=None, kwargs["in_postal_code"] = kwargs.get("in_postal_code", postal_code) kwargs["in_lata"] = kwargs.get("in_lata", lata) kwargs["in_rate_center"] = kwargs.get("in_rate_center", rate_center) + + if "near_lat_long" in kwargs: + coord_strings = [str(coord) for coord in kwargs["near_lat_long"]] + kwargs["near_lat_long"] = ",".join(coord_strings) + params = transform_params(kwargs) uri = "%s/%s/%s" % (self.uri, country, TYPES[type])