-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PHL lots & live capacity via API #5
Comments
That sounds cool. There's an API for live capacity? Where does one find that? |
@wesweaver Apologies; I make assumptions about public awareness of open data resources because I deal with it daily. Yes - we're fortunate that PHL does expose endpoints with capacity for all of the lots on site. Most of these issues were self-directed, but if you're up for working on this one I'll update with a checklist of what I estimate the steps might look like. I'm verrrry slow with figuring out how to consume API data via JavaScript, but I can get polygons together for the lots & go from there. |
Rad. Forked! The API looks straightforward. I'd love to take a stab at it. |
So I slapped together something to read the API. Two questions though: 1) are we avoiding jQuery? I can rewrite with pure javascript. 2) do you have a polygon file in mind that you want this joined to? |
@wesweaver awesome! I added the polys to the map last night, just need to hook them up to UI. I'm going to take a shot at getting live capacity in the info tray first; though eventually it's probably more useful to render as an overlay on the polys. The lack of jQuery is because I was (am) learning JavaScript as I went, and decided I wanted to learn to do everything with vanilla JS first. It's being loaded because of other depends, so I'd hate to make you rewrite it for my sake. |
(Because my dad asked nicely.)
Rough outline:
The text was updated successfully, but these errors were encountered: