sgillies: @critical-path it turns out that the API server is sensitive to url-encoding. Can you give me a thumbs up or thumbs down on these changes?
critical-path: @sgillies 

My apologies for not catching this in my original pull request.  Thank you!
sgillies: @critical-path no problem! It surprised me, too.
diff --git a/CHANGES b/CHANGES
index 6133da9..537d555 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,13 @@
 Changes
 =======
 
+0.17.1 (2018-09-26)
+-------------------
+
+Bug fixes:
+
+- Fix for the encoding of Tilequery coordinates (#259).
+
 0.17.0 (TBD)
 ------------
 
diff --git a/mapbox/__init__.py b/mapbox/__init__.py
index ddd59cd..7e974c4 100644
--- a/mapbox/__init__.py
+++ b/mapbox/__init__.py
@@ -1,5 +1,5 @@
 # mapbox
-__version__ = "0.17.0"
+__version__ = "0.17.1"
 
 from .services.datasets import Datasets
 from .services.directions import Directions
diff --git a/mapbox/services/tilequery.py b/mapbox/services/tilequery.py
index b0380de..8d3a6c9 100644
--- a/mapbox/services/tilequery.py
+++ b/mapbox/services/tilequery.py
@@ -163,12 +163,12 @@ class Tilequery(Service):
         # Create dict to assist in building URI resource path.
 
         path_values = dict(
-            map_id=map_id, api_name=self.api_name, coordinates="{},{}".format(lon, lat)
+            api_name=self.api_name, lon=lon, lat=lat
         )
 
         # Build URI resource path.
 
-        path_part = "/{map_id}/{api_name}/{coordinates}.json"
+        path_part = "/" + map_id + "/{api_name}/{lon},{lat}.json"
         uri = URITemplate(self.base_uri + path_part).expand(**path_values)
 
         # Build URI query_parameters.

Tilequery coordinate encoding is wrong
Version 0.17.0 puts `-105.0%2C40.0` in the request URL, but the Tilequery API requires `-105.0,40.0`.
diff --git a/tests/test_tilequery.py b/tests/test_tilequery.py
index e6074e0..9c53da8 100644
--- a/tests/test_tilequery.py
+++ b/tests/test_tilequery.py
@@ -97,7 +97,7 @@ def test_tilequery_one_mapid():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test",
         match_querystring=True,
         body='{"key": "value"}',
@@ -117,9 +117,9 @@ def test_tilequery_two_mapids():
         method=GET,
         url="https://api.mapbox.com"
         + "/v4"
-        + "/mapbox.mapbox-streets-v9%2Cmapbox.mapbox-streets-v10"
+        + "/mapbox.mapbox-streets-v9,mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test",
         match_querystring=True,
         body='{"key": "value"}',
@@ -143,7 +143,7 @@ def test_tilequery_with_radius():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25",
         match_querystring=True,
@@ -168,7 +168,7 @@ def test_tilequery_with_limit():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&limit=25",
         match_querystring=True,
@@ -193,7 +193,7 @@ def test_tilequery_with_dedupe():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&dedupe=true",
         match_querystring=True,
@@ -218,7 +218,7 @@ def test_tilequery_with_geometry():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&geometry=linestring",
         match_querystring=True,
@@ -243,9 +243,9 @@ def test_tilequery_with_layers():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
-        + "&layers=layer0%2Clayer1%2Clayer2",
+        + "&layers=layer0,layer1%2Clayer2",
         match_querystring=True,
         body='{"key": "value"}',
         status=200,
@@ -271,7 +271,7 @@ def test_tilequery_with_radius_and_limit():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25",
@@ -297,7 +297,7 @@ def test_tilequery_with_radius_and_dedupe():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&dedupe=true",
@@ -323,7 +323,7 @@ def test_tilequery_with_radius_and_geometry():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&geometry=linestring",
@@ -349,10 +349,10 @@ def test_tilequery_with_radius_and_layers():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
-        + "&layers=layer0%2Clayer1%2Clayer2",
+        + "&layers=layer0,layer1%2Clayer2",
         match_querystring=True,
         body='{"key": "value"}',
         status=200,
@@ -379,7 +379,7 @@ def test_tilequery_with_radius_limit_and_dedupe():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
@@ -406,7 +406,7 @@ def test_tilequery_with_radius_limit_and_geometry():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
@@ -438,11 +438,11 @@ def test_tilequery_with_radius_limit_and_layers():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
-        + "&layers=layer0%2Clayer1%2Clayer2",
+        + "&layers=layer0,layer1%2Clayer2",
         match_querystring=True,
         body='{"key": "value"}',
         status=200,
@@ -470,7 +470,7 @@ def test_tilequery_with_radius_limit_dedupe_and_geometry():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
@@ -504,12 +504,12 @@ def test_tilequery_with_radius_limit_dedupe_and_layers():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
         + "&dedupe=true"
-        + "&layers=layer0%2Clayer1%2Clayer2",
+        + "&layers=layer0,layer1%2Clayer2",
         match_querystring=True,
         body='{"key": "value"}',
         status=200,
@@ -538,13 +538,13 @@ def test_tilequery_with_radius_limit_dedupe_geometry_and_layers():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test"
         + "&radius=25"
         + "&limit=25"
         + "&dedupe=true"
         + "&geometry=linestring"
-        + "&layers=layer0%2Clayer1%2Clayer2",
+        + "&layers=layer0,layer1%2Clayer2",
         match_querystring=True,
         body='{"key": "value"}',
         status=200,
@@ -574,7 +574,7 @@ def test_tilequery_geojson_method():
         + "/v4"
         + "/mapbox.mapbox-streets-v10"
         + "/tilequery"
-        + "/0.0%2C1.1.json"
+        + "/0.0,1.1.json"
         + "?access_token=pk.test",
         match_querystring=True,
         body='{"key": "value"}',

pip install -e .[test]
parse_log_pytest
requirements.txt
pytest pytest-cov
pip install -U pip
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
boto3==1.23.10
botocore==1.26.10
CacheControl==0.12.14
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
coveralls==3.3.1
distlib==0.3.9
docopt==0.6.2
filelock==3.4.1
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
iso3166==2.1.1
jmespath==0.10.0
-e git+https://github.com/mapbox/mapbox-sdk-py.git@15989e7c61d23ba16745a2394a87d46b6f7675de#egg=mapbox
msgpack==1.0.5
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
polyline==1.4.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
requests==2.27.1
responses==0.17.0
s3transfer==0.5.2
six==1.17.0
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
uritemplate==4.1.1
urllib3==1.26.20
virtualenv==20.17.1
zipp==3.6.0

name: mapbox-sdk-py
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - boto3==1.23.10
      - botocore==1.26.10
      - cachecontrol==0.12.14
      - charset-normalizer==2.0.12
      - coverage==6.2
      - coveralls==3.3.1
      - distlib==0.3.9
      - docopt==0.6.2
      - filelock==3.4.1
      - idna==3.10
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - iso3166==2.1.1
      - jmespath==0.10.0
      - msgpack==1.0.5
      - packaging==21.3
      - pip==21.3.1
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - polyline==1.4.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - requests==2.27.1
      - responses==0.17.0
      - s3transfer==0.5.2
      - six==1.17.0
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - uritemplate==4.1.1
      - urllib3==1.26.20
      - virtualenv==20.17.1
      - zipp==3.6.0
prefix: /opt/conda/envs/mapbox-sdk-py

tests/test_tilequery.py::test_tilequery_one_mapid tests/test_tilequery.py::test_tilequery_two_mapids tests/test_tilequery.py::test_tilequery_with_radius tests/test_tilequery.py::test_tilequery_with_limit tests/test_tilequery.py::test_tilequery_with_dedupe tests/test_tilequery.py::test_tilequery_with_geometry tests/test_tilequery.py::test_tilequery_with_layers tests/test_tilequery.py::test_tilequery_with_radius_and_limit tests/test_tilequery.py::test_tilequery_with_radius_and_dedupe tests/test_tilequery.py::test_tilequery_with_radius_and_geometry tests/test_tilequery.py::test_tilequery_with_radius_and_layers tests/test_tilequery.py::test_tilequery_with_radius_limit_and_dedupe tests/test_tilequery.py::test_tilequery_with_radius_limit_and_geometry tests/test_tilequery.py::test_tilequery_with_radius_limit_and_layers tests/test_tilequery.py::test_tilequery_with_radius_limit_dedupe_and_geometry tests/test_tilequery.py::test_tilequery_with_radius_limit_dedupe_and_layers tests/test_tilequery.py::test_tilequery_with_radius_limit_dedupe_geometry_and_layers tests/test_tilequery.py::test_tilequery_geojson_method
tests/test_tilequery.py::test_object_properties tests/test_tilequery.py::test_validate_lon_invalid[-181] tests/test_tilequery.py::test_validate_lon_invalid[181] tests/test_tilequery.py::test_validate_lon_valid[-180] tests/test_tilequery.py::test_validate_lon_valid[0] tests/test_tilequery.py::test_validate_lon_valid[180] tests/test_tilequery.py::test_validate_lat_invalid[-86] tests/test_tilequery.py::test_validate_lat_invalid[86] tests/test_tilequery.py::test_validate_lat_valid[-85.0511] tests/test_tilequery.py::test_validate_lat_valid[0] tests/test_tilequery.py::test_validate_lat_valid[85.0511] tests/test_tilequery.py::test_validate_radius_invalid tests/test_tilequery.py::test_validate_radius_valid[0] tests/test_tilequery.py::test_validate_radius_valid[1000000] tests/test_tilequery.py::test_validate_limit_invalid[0] tests/test_tilequery.py::test_validate_limit_invalid[51] tests/test_tilequery.py::test_validate_limit_valid[1] tests/test_tilequery.py::test_validate_limit_valid[25] tests/test_tilequery.py::test_validate_limit_valid[50] tests/test_tilequery.py::test_validate_geometry_invalid tests/test_tilequery.py::test_validate_radius_geometry[linestring] tests/test_tilequery.py::test_validate_radius_geometry[point] tests/test_tilequery.py::test_validate_radius_geometry[polygon]
mapbox/__init__.py CHANGES mapbox/services/tilequery.py
mapbox/__init__.py CHANGES mapbox/services/tilequery.py