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

Support for fetching non-esri JSON #438

Open
khibma opened this issue Jul 4, 2018 · 3 comments
Open

Support for fetching non-esri JSON #438

khibma opened this issue Jul 4, 2018 · 3 comments
Labels

Comments

@khibma
Copy link

khibma commented Jul 4, 2018

The doc says you can point at JSON files, but do these static files still need to conform to a feature service like response?

Per: https://esri.github.io/cedar/examples/inlined-data.html It states the expected input needs to look like...

{
  ...other properties...
  features:[
    {
      "attributes": {
        "ZIP_CODE": 20005,
        "TOTAL_STUD_SUM": 327
      }

I was hoping to point a chart at an API, like https://city-of-ottawa-dev.apigee.net/open311/v2/requests.json inside the ArcGIS Hub. Everything inside this particular JSON request starts immediately as items inside a list. No features, no attributes keys.

@benstoltz
Copy link
Member

Hi there @khibma, currently we don't have any way to pull in an external api (non esri based) like that. But we are now adding that feature to the backlog. As an alternative you can also inline data. It would look something like:

{
  "datasets": {
    "data": [{}, {}, etc]
  }
}

I know it's not the greatest work around, but it could potentially help in this case. As an aside inlined data can take the following formats:

  • A normal FS response
  • The features property of a FS response
  • An array of objects like
[
  { col1: 'a1', col2: 'b1' },
  { col1: 'a2', col2: 'b2' },
]

Hope this helps and we'll keep you apprised in terms of pulling in non-esri apis.

@khibma
Copy link
Author

khibma commented Jul 16, 2018

thanks @benstoltz - I appreciate and will investigate this.
This answers my question, feel free to close this if you need for your issue management.

@tomwayson
Copy link
Member

Thanks @khibma - I'm going to leave this issue open as a feature request to support fetching non-esri data sources in addition to being able to inline them as @benstoltz suggests above.

@tomwayson tomwayson added the v1x label Jul 27, 2018
@tomwayson tomwayson changed the title Support for non-esri JSON Support for fetching non-esri JSON Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants