[Realtime-feed-users] Detail JSON Structure
Fee, Jeremy
jmfee at usgs.gov
Thu Apr 17 15:24:37 UTC 2014
Hi,
The simplest use of these feeds is in javascript, which natively supports
JSON. An example of this is our Latest Earthquakes application at:
http://earthquake.usgs.gov/earthquakes/map/
The source code for this is on GitHub at:
https://github.com/usgs/earthquake-latest-earthquakes
There is also a Java library that parses the GeoJSON feeds, or search API
which supports the same formats, at:
https://github.com/usgs/earthquake-event-ws-client
This uses a json library for parsing, and then a wrapper object that
manages access into the structure.
There are also examples for Python, Matlab, and R, in this github
repository:
https://github.com/usgs/devcorner
Thanks,
Jeremy
On Thu, Apr 17, 2014 at 9:58 AM, Rogers, Wesley A <
wesley.a.rogers at boeing.com> wrote:
> Thanks – I saw that this morning and subscribed. I am having major
> problems deserializing this section of your schema, where there is a set of
> objects (but not an array) that have variable names. Dictionary<string,
> object> is not working. How does your group do it?
>
>
>
> "contents": {
>
> "about_formats.html": {
>
> "contentType": "text/html",
>
> "lastModified": 1395680950000,
>
> "length": 28818,
>
> "url": "
> http://earthquake.usgs.gov/product/shakemap/ci15476961/ci/1395680957869/about_formats.html
> "
>
> },
>
> "contents.xml": {
>
> "contentType": "application/octet-stream",
>
> "lastModified": 1395680951000,
>
> "length": 8741,
>
> "url": "
> http://earthquake.usgs.gov/product/shakemap/ci15476961/ci/1395680957869/contents.xml
> "
>
> },
>
> "download/15476961.kml": {
>
> "contentType": "application/octet-stream",
>
> "lastModified": 1395680947000,
>
> "length": 2673,
>
> "url": "
> http://earthquake.usgs.gov/product/shakemap/ci15476961/ci/1395680957869/download/15476961.kml
> "
>
> },
>
> . . .
>
>
>
> Yours,
> Wesley A Rogers
> Entr Dmd Mgt Srvc NonHR EATS
>
>
>
> *From:* Fee, Jeremy [mailto:jmfee at usgs.gov]
> *Sent:* Thursday, April 17, 2014 7:54 AM
> *To:* Rogers, Wesley A
> *Cc:* Lynda Lastowka
> *Subject:* Detail JSON Structure
>
>
>
> Hello,
>
>
>
> Based on user feedback, we set up a separate mailing list specifically for
> realtime-feed questions. The realtime-feeds list will only be used to
> announce changes to the feeds moving forward.
>
>
>
> I forwarded your message and a reply to that list, but forgot to cc you on
> my reply:
>
>
> http://geohazards.usgs.gov/pipermail/realtime-feed-users/2014-April/000001.html
>
>
>
> Please subscribe to the new list here:
>
> https://geohazards.usgs.gov/mailman/listinfo/realtime-feed-users
>
>
>
>
>
> Thanks,
>
>
>
> Jeremy
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geohazards.usgs.gov/pipermail/realtime-feed-users/attachments/20140417/eb19042e/attachment.html>
More information about the Realtime-feed-users
mailing list