title: Standard GPS Coordinates to lat/long/zoom used by MapBox
body: <p>I'm brand new to MapBox, but like the images it produces, and want to be able to use their API to render some GPS points nicely.</p>
  
  <p>Given a Standard GPS point (and a MapBox zoom level), how can I find the Lon/Lat values for a suitable MapBox 'tile' ?</p>
  
  <p>The actual code that I'm trying to use is the Python code at:</p>
  
  <p><a href="https://github.com/mapbox/mapbox-sdk-py/blob/master/docs/static.md#static-maps" rel="nofollow noreferrer">https://github.com/mapbox/mapbox-sdk-py/blob/master/docs/static.md#static-maps</a></p>
  
  <p>And my starting GPS point is in Auckland New Zealand <code>-36.8,174.7</code>.</p>
  
  <p><a href="https://www.google.co.nz/maps/place/36%C2%B048&#39;00.0%22S+174%C2%B042&#39;00.0%22E/" rel="nofollow noreferrer">https://www.google.co.nz/maps/place/36°48'00.0"S+174°42'00.0"E/</a></p>
  
  <p>I have naively tried entering "standard" GPS coordinates:</p>
  
  <p><code>from mapbox import Static
  service = Static()
  response = service.image('mapbox.satellite', lon=-36.8, lat=174.7, z=10)
  </code></p>
  
  <p>but this results in the error message:</p>
  
  <p><code>mapbox.errors.InvalidCoordError: Latitude must be between -85.0511 and 85.0511</code></p>
  
  <p>Searching for this error message led me to this:</p>
  
  <p><a href="https://en.wikipedia.org/wiki/Tiled_web_map" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Tiled_web_map</a></p>
  
  <p>But I still have no idea how to determine the long/lat values of a suitable tile.  Any help would be appreciated.</p>
  
  <p>Thanks in Advance</p>
  
  <p>Patrick</p>