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

Change Phenomenons in Tracks to JSON Object #25

Closed
ubergesundheit opened this issue May 16, 2013 · 0 comments
Closed

Change Phenomenons in Tracks to JSON Object #25

ubergesundheit opened this issue May 16, 2013 · 0 comments
Assignees

Comments

@ubergesundheit
Copy link
Member

Please change the Tracks so that the features look like the following.

This would eliminate the need to iterate through the phenomenons array in order to find for example the value for a phenomenon.

Cheers

{
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    12.365,
                    24.068
                ]
            },
            "properties": {
                "id": "51944e3ae4b017df94de8f73",
                "time": "2013-05-16T04:13:27+02:00",
                "sensor": {
                    "name": "testsensor1",
                    "created": "2013-05-16T05:00:17+02:00",
                    "modified": "2013-05-16T05:00:17+02:00"
                },
                "user": {
                    "name": "testuser1",
                    "mail": "testuser1@example.org",
                    "created": "2013-05-16T04:58:30+02:00",
                    "modified": "2013-05-16T04:58:30+02:00"
                },
                "modified": "2013-05-16T05:10:50+02:00",
                "created": "2013-05-16T05:10:50+02:00",
                "phenomenons": {
                    "co2": {
                        "created": "2013-05-16T05:00:22+02:00",
                        "modified": "2013-05-16T05:00:22+02:00",
                        "value": 21.688
                    }
                }
            }
        }
    ]
}
@ghost ghost assigned autermann May 16, 2013
autermann added a commit that referenced this issue May 16, 2013
* dev:
  test data creation script
  changed encoding of measurement values (fixes #25)
  removed fixme
  encode error for invalid created responses
  validate schema files while building
  only encode references to other entities
  updated schemas with common definitions
  multibinding dependency for rest module
  load schema files with guice
  root schema
  root schema
  renamed schema factory
autermann added a commit that referenced this issue May 16, 2013
* dev: (46 commits)
  some refactorings
  fixed test data script
  test data creation script
  changed encoding of measurement values (fixes #25)
  removed fixme
  encode error for invalid created responses
  validate schema files while building
  only encode references to other entities
  updated schemas with common definitions
  multibinding dependency for rest module
  load schema files with guice
  root schema
  root schema
  renamed schema factory
  disabled logging filter
  activated jersey logging filter
  removed auth annotation for GET methods
  fixed get measurement by id
  catch IAE for invalid ObjectIDs
  throw 404 for measurements that are not in the track
  ...

Conflicts:
	mongo/src/main/java/io/car/server/mongo/guice/MongoDaoModule.java
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