-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Compatibility with SODA #148
Comments
I would be cool if we could do the conversion in js so it would be all client-side and wouldn't require any hosting. |
Yayaya! I meant to imply that. Not a js/github expert so wasn't sure what would be possible. |
So I found GeoJSON.js, which seems like it should easily do the conversion. I added geojson.js & geojson.min.js to the /lib, and then tried modifying the require.js stuff in script.js, plus adding an import in /src/data/geojson.js as well as some code to handle querying the SODA api. But it doesn't appear to be playing well with require.js (it's written for node?). There's something here about making the two play well together but I will take a look later. |
I.... sort of got this to work in a somewhat inelegant way.
Outstanding issues Improvements to be made
|
Also make sure to update the README and wiki with instructions for how to connect with SODA! |
My thought for how this could get brought back into the fold: right now, "data": {
"href": "link to some JSON",
"process": "function body"
} Then, if "process" is defined, we'd create a function out of that body, and pass the data through it before it gets sent to the other parts of Finda as GeoJSON. It's not the easiest thing in the world, but it would work with the existing Finda setup and allow the SODA-based versions of Finda to coexist with the others. |
So Socrata has brought GeoJSON support online, though I guess the JSON functionality of Finda would still be useful since the migration to the new API hasn't completed yet. If I understand correctly you're suggesting to have the I already wrote the beginnings of a conditional expression here which handles the selection of either GeoJSON or Soda as a source of data. If SODA, then it performs the processing @paulswartz wrote to convert from JSON to GeoJSON. Though the
If one wanted to extend support to, for example, Well-Known Text in a CSV, the processing part could be done according to the suggestion above. As I think of the variety of different formats geographic data can take.... being friendly to supporting them all seems a little futile. I guess as the public need develops. Thoughts? |
The fact that there are a variety of different formats is why I proposed the |
Similar to Explore Ohana integration #45 .
The SODA API seems to be a great and simple way to access open city/government data, and one can request data in JSON format with locations (but not geoJSON). It would be nice to have finda be able to interface directly with these, so that maps could be updated when the data updates.
I found this project in python to pull SODA data and convert it to geoJSON however I had difficulty getting it to work with SoQL queries.
The text was updated successfully, but these errors were encountered: