<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using OpenData Explore REST API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1170127#M77212</link>
    <description>&lt;P&gt;oh ok ! I can't find infomations on how to extract vectortiles from opndatasoft's explore api,&amp;nbsp; could you point me in the right direction on how to do that as well ? thx &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 14:19:09 GMT</pubDate>
    <dc:creator>devmap126</dc:creator>
    <dc:date>2022-05-03T14:19:09Z</dc:date>
    <item>
      <title>Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169169#M77174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;IDK how widespread it is but at leat in france we have acces to lot of state datasets through an API called Explore API ( see here :&amp;nbsp;&lt;A href="https://data.opendatasoft.com/api/v2/console?flg=en" target="_blank"&gt;https://data.opendatasoft.com/api/v2/console?flg=en&amp;nbsp;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I would like to add data from there on the map&amp;nbsp; I'm making with ArcGIS JS, notably this one&amp;nbsp;&lt;A href="https://dataviz.agenceore.fr/cartographie-reseaux/" target="_blank"&gt;https://dataviz.agenceore.fr/cartographie-reseaux/&lt;/A&gt;&amp;nbsp;wich it's data is accesible through Eplore API,&lt;/P&gt;&lt;P&gt;do you know if there is a easy way of integrating it into ArcGis ? how ? can you point me to example or informations or tell me ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually ask stupid questions once then I can help others &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in adavance thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 07:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169169#M77174</guid>
      <dc:creator>devmap126</dc:creator>
      <dc:date>2022-04-29T07:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169317#M77180</link>
      <description>&lt;P&gt;This one is going to require a little bit of work to find what data you want, but can be done. Looking at the opendata console, you can request results as geojson and use the GeoJSONLayer.&lt;/P&gt;&lt;P&gt;I think you would first want to pull in the datasets you are interested in. The API supports where clauses and other SQL queries, so you can limit to what you are interested in.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneRubalcava_0-1651240850065.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40212iAA66579CDB45A9EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneRubalcava_0-1651240850065.png" alt="ReneRubalcava_0-1651240850065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you do that, you can grab. a dataset_id. I'm not familiar with this, but they look like long strings with domains maybe?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneRubalcava_1-1651240931864.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40213iE70713C0E81EA31C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneRubalcava_1-1651240931864.png" alt="ReneRubalcava_1-1651240931864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure that's what you're looking for, but it gets you to the next step.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneRubalcava_4-1651241212539.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40217i41545BEE951C0CD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneRubalcava_4-1651241212539.png" alt="ReneRubalcava_4-1651241212539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give you the URL you can use to download the data in GeoJSON.&lt;/P&gt;&lt;P&gt;&lt;A href="https://data.opendatasoft.com/api/v2/catalog/datasets/zones-tendues-et-tres-tendues@dila/exports/geojson?select=*&amp;amp;limit=-1&amp;amp;offset=0&amp;amp;timezone=UTC" target="_blank" rel="noopener"&gt;https://data.opendatasoft.com/api/v2/catalog/datasets/zones-tendues-et-tres-tendues@dila/exports/geojson?select=*&amp;amp;limit=-1&amp;amp;offset=0&amp;amp;timezone=UTC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you can use a GeoJSONLayer with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#customParameters" target="_self"&gt;customParameters&lt;/A&gt; to load it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/KKQPejP?editors=100" target="_blank" rel="noopener"&gt;https://codepen.io/odoe/pen/KKQPejP?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const geojsonLayer = new GeoJSONLayer({
    url: url, // no parameters in this URL
    customParameters: {
      select: "*",
      limit: "-1",
      offset: "0",
      timezone: "UTC"
    },
    copyright: "OpenDataSoft",
    renderer: renderer
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169317#M77180</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-04-29T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169352#M77181</link>
      <description>&lt;P&gt;wow !! So I was playing with geoJsonLayer but couldn't figure how to query the Explore API in geoJSON actually , thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the link is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://opendata.agenceore.fr/api/v2/catalog/datasets/reseau-aerien-basse-tension-bt/exports/geojson" target="_blank"&gt;https://opendata.agenceore.fr/api/v2/catalog/datasets/reseau-aerien-basse-tension-bt/exports/geojson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and the geojson contains&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;"type": "Feature",&lt;BR /&gt;"geometry": {&lt;BR /&gt;"coordinates": [&lt;BR /&gt;[ 5.4057960639, 43.2715121472 ],&lt;BR /&gt;[ 5.4057907542, 43.2714986844 ],&lt;BR /&gt;[ 5.405787892, 43.2714914104 ]&lt;BR /&gt;],&lt;BR /&gt;"type": "LineString"&lt;BR /&gt;},&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;as I read in the docs LyneString is a Poyline in arcgis so I did the following but still nothing appears and I dont, do I set the renderer wrong ? what is the way to go ? thx &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;const renderer = { type: "simple", symbol: { type: "simple-line", color: "orange" } };&lt;/P&gt;&lt;P&gt;const geojsonLayer = new GeoJSONLayer({&lt;BR /&gt;url: url,&lt;BR /&gt;geometryType:"polyline",&lt;BR /&gt;copyright: "AgenceORE",&lt;BR /&gt;renderer: renderer&lt;BR /&gt;});&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169352#M77181</guid>
      <dc:creator>devmap126</dc:creator>
      <dc:date>2022-04-29T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169368#M77182</link>
      <description>&lt;P&gt;I checked that dataset and it is huuuge. You don't need to set the geometryType, GeoJSONLayer will figure it out, but the actual geojson takes a looong time to load. I was able to verify it changing the &lt;STRONG&gt;limit&lt;/STRONG&gt; parameter to &lt;STRONG&gt;1000&lt;/STRONG&gt;. I could see some lines to verify that it's working. The GeoJSONLayer doesn't have a way to paginate over the results to try and stream them in. This is probably a case where it's better to download the GeoJSON and upload as a hosted FeatureService due to the sheer size.&lt;/P&gt;&lt;P&gt;That dataset is still downloading on my machine, but this would definitely be a better candidate as a featureservice, because at that point we can take advantage of feature tiles, generalizing the geometries, and make it much more performant than raw geojson. Unless you can limit the results vie a where clause on the API, that's the route I would recommend.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169368#M77182</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-04-29T16:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169380#M77183</link>
      <description>&lt;P&gt;Oh yes indeed !! great . I wasn't sos far^^&lt;/P&gt;&lt;P&gt;Is there a lighter way to load it ? on theyre demo page they load the whole map no problem.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169380#M77183</guid>
      <dc:creator>devmap126</dc:creator>
      <dc:date>2022-04-29T16:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169382#M77184</link>
      <description>&lt;P&gt;It looks like they converted all the data to vector tiles, so they're not loading the raw geosjon. Same idea, just a different format.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1169382#M77184</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-04-29T16:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using OpenData Explore REST API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1170127#M77212</link>
      <description>&lt;P&gt;oh ok ! I can't find infomations on how to extract vectortiles from opndatasoft's explore api,&amp;nbsp; could you point me in the right direction on how to do that as well ? thx &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 14:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-opendata-explore-rest-api/m-p/1170127#M77212</guid>
      <dc:creator>devmap126</dc:creator>
      <dc:date>2022-05-03T14:19:09Z</dc:date>
    </item>
  </channel>
</rss>

