WICG / netinfo

https://wicg.github.io/netinfo/
Other
95 stars 28 forks source link

Connection type JSON struct #14

Closed igrigorik closed 10 years ago

igrigorik commented 10 years ago

First run at the (cellular) connection info JSON struct based on data from: https://docs.google.com/spreadsheets/d/16csKPy0dC2Hs6OHbLdWf0qlDiiRreqPtsMEE8vebRYo/edit

The reason I'm erring on the side of "too much" is because finding a good source of structured data on this stuff is really darn hard, and perhaps this could be it -- pull in this JSON and you have all you need. On that note, I'm also entertaining making ceiling an object with two values: uplink, downlink.

Am I crazy? Feel free to tell me that I am. :)

marcoscaceres commented 10 years ago

This is looking good. I would drop type tho. We don't want to have to document every platform, and then it would be sad if we had to document platform versions if any of these API properties change name in future versions (or even at a language level: e.g., Objective-c and Swift).

I'm ok for us to keep latencyRange in there for now.

Also, JSON doesn't support comments :) Maybe just add the ref as a property.