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.

44 lines
2.0 KiB

  1. <div class="page">
  2. <h2><i class="fa fa-clock-o"></i> Timezone</h2>
  3. <h3>Retrieving the timezone at a lat/lng</h3>
  4. <ul>
  5. <li><a href="/api/timezone?latitude=45.5118&amp;longitude=-122.6433">/api/timezone?latitude=45.5118&amp;longitude=-122.6433</a></li>
  6. <li><a href="/api/timezone?airport=PDX">/api/timezone?airport=PDX</a></li>
  7. </ul>
  8. <h2><i class="fa fa-globe"></i> Geocoder</h2>
  9. <h3>Retrieving the lat/lng for a named location</h3>
  10. <ul>
  11. <li><a href="/api/geocode?input=309+SW+6th+Ave,+Portland,+OR">/api/geocode?input=309+SW+6th+Ave,+Portland,+OR</a></li>
  12. </ul>
  13. <h3>Retrieving a named location from a lat/lng</h3>
  14. <ul>
  15. <li><a href="/api/geocode?latitude=45.5118&amp;longitude=-122.6433">/api/geocode?latitude=45.5118&amp;longitude=-122.6433</a></li>
  16. <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>
  17. </ul>
  18. <h2><i class="fa fa-sun-o"></i> Weather</h2>
  19. <h3>Retrieving the current weather for a lat/lng</h3>
  20. <ul>
  21. <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>
  22. </ul>
  23. <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>
  24. <h2><i class="fa fa-map"></i> Static Maps</h2>
  25. <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>
  26. <img src="/assets/sample-map.png" width="600"/>
  27. <p>See <a href="https://github.com/aaronpk/Static-Maps-API-PHP/">Static-Maps-API</a> for full API docs</p>
  28. </div>