Aaron Parecki
0a60b1e030
Remove Slim and Savant; built-in routing and rendering
Atlas is now a plain library plus a tiny web app with no framework:
- p3k\Atlas\App routes the seven endpoints, p3k\Atlas\View renders the
plain PHP templates, p3k\Atlas\Response carries the result. Controllers
are ported line for line from the Slim closures.
- p3k\geo\StaticMap\render() returns the image bytes and content type
instead of sending headers and echoing, so other apps can embed it.
generate() remains as a wrapper. The tile size constant is namespaced.
- Fix Airports::from_code() (the file handle was never kept) and the
reference to a Geocoder class that never existed.
- composer: type library, PHP 8.1+, ext-gd required; lib/helpers.php is no
longer autoloaded so nothing global leaks into consumers.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LeX8DR83QNwGUBJDAXj8fi
2 days ago
Aaron Parecki
c249669541
exclude detailed forecast
2 years ago
Aaron Parecki
3785168e1a
update to OpenWeathermap 3.0
closes #11
2 years ago
Aaron Parecki
f78604aec3
Update README.md
3 years ago
Aaron Parecki
29bdd2fba2
fix token check
4 years ago
Aaron Parecki
6ab7bbab61
lock down fetching external icons or tile URLs to authenticated requests
for #8
4 years ago
Aaron Parecki
2b72061c4f
remove unused config file
4 years ago
Aaron Parecki
ac46c21078
add local docs for static maps
4 years ago
Aaron Parecki
e77d8b00f3
move map images to public folder for use in API docs
4 years ago
Aaron Parecki
5e271907b3
fix error handling when there is a problem downloading a tile
for #9
4 years ago
Aaron Parecki
c6f23b8bed
force x and y to ints
4 years ago
Aaron Parecki
d02e80c8af
syntax cleanup
4 years ago
Aaron Parecki
72d95d667d
cleanup
4 years ago
Aaron Parecki
c930264c45
switch to https URLs for tiles
for #9
4 years ago
Aaron Parecki
f137f8ebb3
follow redirects from tile server URLs
for #9
4 years ago
Aaron Parecki
eaceaa71db
hide deprecated warnings for php 7.4
4 years ago
Aaron Parecki
37a23e184b
fix composer.json
4 years ago
Aaron Parecki
2d8dec70b1
fix timezone issue
4 years ago
Aaron Parecki
d08a6af502
replace weather provider with openweathermap.org
5 years ago
Aaron Parecki
fe1a5a8c25
fix geocoder and better error handling
6 years ago
Aaron Parecki
82c4fb44cf
use https for arcgis geocoder
6 years ago
Aaron Parecki
e396d6398c
update to use dark sky instead of wunderground
7 years ago
Aaron Parecki
5d675b56fa
add check for address property
8 years ago
Aaron Parecki
10e5e07c2a
add postal code when geocoding something that is missing one
8 years ago
Aaron Parecki
ab7506b66f
don't crash with an invalid api key
8 years ago
Aaron Parecki
818da8cd29
add zipcode to geocoder result
8 years ago
Aaron Parecki
58034b519f
add timezone lookup from airport codes
8 years ago
Aaron Parecki
926ff2e06f
pass thru wunderground API key
8 years ago
Aaron Parecki
a16ea634cc
fix geocoder in static map
9 years ago
Aaron Parecki
2d2449d9e8
add option to provide custom tile URL
9 years ago
Aaron Parecki
709a8cff72
fix daytime calculation
9 years ago
Aaron Parecki
6d31ee4b62
add parameter to force attribution image to be small
9 years ago
Aaron Parecki
22b6fcc93b
use p3k\timezone libary
9 years ago
Aaron Parecki
c03eaf3024
set opacity=0
(seems to be different between imagemagick 3.3.0 and 3.4.3)
9 years ago
Aaron Parecki
20d86c9f85
fix zoom to fit
was previously sometimes one zoom level too far
9 years ago
Aaron Parecki
afc857a9d4
rename variables to match blog post
9 years ago
Aaron Parecki
61bda71c6d
fix centering for any icon with "dot" in the name
9 years ago
Aaron Parecki
40babc9312
draw curved lines between points
add bezier parameter which takes an angle used to draw bezier curves between points when drawing line segments
9 years ago
Aaron Parecki
8d11733a7b
set minzoom=2 to avoid missing tiles
9 years ago
Aaron Parecki
772b5207be
Merge branch 'master' of github.com:aaronpk/Atlas
9 years ago
Aaron Parecki
050b83cbb8
update readme
9 years ago
Aaron Parecki
475fbf1410
add parameter to return the localized date for a location
10 years ago
Aaron Parecki
b0d5f233d7
minor tweaks to weather icon mappings
10 years ago
Aaron Parecki
64d0995de5
fix checking sunset/sunrise times
10 years ago
Aaron Parecki
3c4b2686a8
adds a weather API
closes #2
10 years ago
Aaron Parecki
428cf9066a
map api uses get or post
11 years ago
Aaron Parecki
2ff4606b23
add static maps api
11 years ago
Aaron Parecki
5136ced638
add pure-css
11 years ago
Aaron Parecki
293a554cd6
add font-awesome
11 years ago
Aaron Parecki
cbcf36e10d
prettier home page
11 years ago