Skip to content
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

Open
1 of 4 tasks
laurenancona opened this issue Mar 28, 2016 · 5 comments
Open
1 of 4 tasks

Add PHL lots & live capacity via API #5

laurenancona opened this issue Mar 28, 2016 · 5 comments

Comments

@laurenancona
Copy link
Owner

laurenancona commented Mar 28, 2016

(Because my dad asked nicely.)

Rough outline:

  • locate or create polygons for PHL lots (LA)
  • structure API request (should probably auto-refresh the available capacity at set interval) - assuming first request triggered by adding the layer via UI (or decide if we want it to be on by default at load)
  • join capacity from API response with geojson boundaries by ____ field
  • decide if we want to represent capacity directly as labels or map it to the info tray like the rest of the regulation data
@wesweaver
Copy link

That sounds cool. There's an API for live capacity? Where does one find that?

@laurenancona
Copy link
Owner Author

@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.
You probably know about OpenDataPhilly; relevant links:

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.

@wesweaver
Copy link

Rad. Forked! The API looks straightforward. I'd love to take a stab at it.

@wesweaver
Copy link

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?

@laurenancona
Copy link
Owner Author

laurenancona commented May 19, 2016

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants