Select to view content in your preferred language

Free Developers Account and Directions Widget

503
3
08-20-2019 10:28 PM
Marijeten_Napel
Emerging Contributor

Hi everyone,

I have a free developers account as I only want to publish a simple app for now. I'd like to use the Directions widget, but every time I click it it goes to a log-in page. I cannot figure out how to make this widget available to public users. I don't know much about tokens and APIs? 

Is there a step by step guide somewhere on how to make this widget publically accessible using a free developers account? Is that possible?

I had a look at this blog post but I get stuck at step 8. I do not see the REST connection in the item details page.

https://www.esri.com/arcgis-blog/products/arcgis-online/transportation/public-access-to-arcgis-onlin...

Thanks so much.

0 Kudos
3 Replies
Egge-Jan_Pollé
MVP Regular Contributor

Hi Marije ten Napel,

Did you have a look at this sample: Directions widget | ArcGIS API for JavaScript 4.12 

This sample requires a proxy to handle communications with the routing service. This example uses an ArcGIS Online hosted proxy. You can either remove it and log in once prompted, or you can set up your own service proxy.

HTH,

Egge-Jan

0 Kudos
Marijeten_Napel
Emerging Contributor

Thanks, I'll check it out. 

I actually found this article which helped me a lot:

Problem: Using the Directions widget for a public web map prompts for ArcGIS Online credentials 

And then I set up an Arcgis Online hosted proxy as described here:

Working with Proxy Services | ArcGIS for Developers 

That's how far my proxy knowledge goes. I hope this will work. 

Marijeten_Napel
Emerging Contributor

I actually still can't get it to work. I made the changes in app builder, created a AGOL hosted proxy. But the direction widget still asks for a log-in. 

Right now I am just doing these things in the browser - should I download arcgis for developers to my computer and make changes from there?

Does have any recommendations for beginner tutorials online regarding proxies, tokens and APIs for complete n00bs?

Thanks so much!

0 Kudos