You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.0 KiB

  1. <header>
  2. <h1>Atlas</h1>
  3. <p>Atlas is a set of APIs for looking up information about locations.</p>
  4. </header>
  5. <div class="page">
  6. <h2><i class="fa fa-clock-o"></i> Timezone</h2>
  7. <h3>Retrieving the timezone at a lat/lng</h3>
  8. <ul>
  9. <li><a href="/api/timezone?latitude=45.5118&amp;longitude=-122.6433">/api/timezone?latitude=45.5118&amp;longitude=-122.6433</a></li>
  10. <li><a href="/api/timezone?airport=PDX">/api/timezone?airport=PDX</a></li>
  11. </ul>
  12. <h2><i class="fa fa-globe"></i> Geocoder</h2>
  13. <h3>Retrieving the lat/lng for a named location</h3>
  14. <ul>
  15. <li><a href="/api/geocode?input=309+SW+6th+Ave,+Portland,+OR">/api/geocode?input=309+SW+6th+Ave,+Portland,+OR</a></li>
  16. </ul>
  17. <h3>Retrieving a named location from a lat/lng</h3>
  18. <ul>
  19. <li><a href="/api/geocode?latitude=45.5118&amp;longitude=-122.6433">/api/geocode?latitude=45.5118&amp;longitude=-122.6433</a></li>
  20. <li><a href="/api/geocode?latitude=45.5118&amp;longitude=-122.6433&date=2016-07-12T09:00:00Z">/api/geocode?latitude=45.5118&amp;longitude=-122.6433&date=2016-07-012T09:00:00Z</a> and return the local time of the given timestamp</li>
  21. </ul>
  22. <h2><i class="fa fa-sun-o"></i> Weather</h2>
  23. <h3>Retrieving the current weather for a lat/lng</h3>
  24. <ul>
  25. <li><a href="/api/weather?latitude=45.5118&amp;longitude=-122.6433&amp;apikey=XXX">/api/weather?latitude=45.5118&amp;longitude=-122.6433&amp;apikey=XXX</a></li>
  26. </ul>
  27. <p>You'll need to pass an OpenWeatherMap.org API key in the request. Icon names reference the <a href="https://erikflowers.github.io/weather-icons/">weather-icons</a> icon font.</p>
  28. <h2><i class="fa fa-map"></i> Static Maps</h2>
  29. <p><a href="/map/img?marker[]=lat:45.5165;lng:-122.6764;icon:small-blue-cutout&amp;basemap=gray&amp;width=600&amp;height=240&amp;zoom=14">/map/img?marker[]=lat:45.5165;lng:-122.6764;icon:small-blue-cutout&amp;basemap=gray&amp;width=600&amp;height=240&amp;zoom=14</a></p>
  30. <img src="/assets/sample-map.png" width="600"/>
  31. <p><a href="/static-maps">Full API docs</a></p>
  32. </div>