Hello,
I am using the ArcGIS API for JavaScript to develop a web application that will support routing for buses. These buses must approach every stop on their routes on the right side of the vehicle. How can I dictate the approach curb with the ArcGIS API for JavaScript?
Thanks,Keith
Yes, you can. Just add a stop with specific attribute name and value i.e. CurbApproach 1
More info on: ArcGIS REST API
Hope this helps,
Adam
This worked well, Nicinski! Below is how I added the CurbApproach attribute to the stop creation:
<SPAN class="keyword token">var</SPAN> stop <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Graphic</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> geometry<SPAN class="punctuation token">:</SPAN> point<SPAN class="punctuation token">,</SPAN> symbol<SPAN class="punctuation token">:</SPAN> stopSymbol<SPAN class="punctuation token">,</SPAN> attributes<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="string token">"CurbApproach"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="number token">1</SPAN> <SPAN class="punctuation token">}</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thanks for your help!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.