<div dir="ltr"><div>Hello,</div><div><br></div><div>It looks like the productType link from the geojson detail documentation is currently broken.  productType refers to the product id "type" attribute:</div><div>
<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a><br></div><div><br></div><div>You could try deserializing properties.products into a Dictionary, mapping product type as a string to an array of product objects.  Other list members may have a better suggestion.</div>
<div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Jeremy</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I'm trying to deserialize earthquake details using the structure described on this page:<br><a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson_detail.php">http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson_detail.php</a><br>
trying to get down to the shakemap urls. The data seems to be present based on looking at the raw JSON string, but I don't see how to map the structure to a set of C# classes.<br>The upper part is not too hard to map, but when I get to the <productType> level things fall apart.<br>
products: { <productType><<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#productType">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#productType</a>>: [ { id<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a>>: String, type<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a>>: String, code<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a>>: String, source<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a>>: String, updateTime<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_id</a>>: Integer, status<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_status">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_status</a>>: String, properties: { <key><<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_propertyName">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_propertyName</a>>: String, ... }, preferredWeight<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#preferredWeight">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#preferredWeight</a>>: Integer, contents: { <path><<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content</a>>: { contentType<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content</a>>: String, lastModified<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content</a>>: Long Integer, length<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content</a>>: Integer, url<<a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content">http://earthquake.usgs.gov/earthquakes/feed/v1.0/glossary.php#product_content</a>>: String }, ... } }, ... ],<br>
Has anyone done this sort of chore, maybe has some advice on how to set up a given product type, path, key, etc?<br>Yours,<br>Wesley A Rogers<br>Entr Dmd Mgt Srvc NonHR EATS</blockquote></div>