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.

43 lines
1.1 KiB

7 years ago
  1. # Atlas
  2. Atlas is a set of APIs to look up information about locations.
  3. ## Timezone
  4. Retrieving the timezone at a lat/lng
  5. * `/api/timezone?latitude=45.5118&longitude=-122.6433`
  6. * `/api/timezone?airport=PDX`
  7. ## Geocoder
  8. Retrieving the lat/lng for a named location
  9. * `/api/geocode?input=309+SW+6th+Ave,+Portland,+OR`
  10. Retrieving a named location from a lat/lng
  11. * `/api/geocode?latitude=45.5118&longitude=-122.6433`
  12. * `/api/geocode?latitude=45.5118&longitude=-122.6433&date=2016-07-012T09:00:00Z` and return the local time of the given timestamp
  13. ## Weather
  14. Retrieving the current weather for a lat/lng
  15. * `/api/weather?latitude=45.5118&longitude=-122.6433&apikey=XXX`
  16. You'll need to pass an OpenWeatherMap.org API key in the request. Icon names reference the [weather-icons](https://erikflowers.github.io/weather-icons/) icon font.
  17. ## Static Maps
  18. * `/map/img?marker[]=lat:45.5165;lng:-122.6764;icon:small-blue-cutout&basemap=gray&width=600&height=240&zoom=14`
  19. [Full Static Maps Docs](https://atlas.p3k.io/static-maps)
  20. ## License
  21. Available under the Apache 2.0 license. See [[LICENSE]].
  22. Copyright 2015-2022 by Aaron Parecki.