Trouble with testing Geocoding and Routing samples.

273
3
Jump to solution
12-22-2022 12:43 PM
GKirouac
New Contributor II

Hi, I'm creating an application in Unity and I'm trying to test out the Geocoding and Routing samples. I try to follow the documentation, as in I put my API key in the ArcGISMap component and try to play the sample. However, each time I interact with the map, I get either a "Unable to complete operation" or a "Invalid Token" error message. I tried linking the component with a SerializeField just in case and putting my API Key directly in the script.

Is there something I am missing ? Thank you

0 Kudos
1 Solution

Accepted Solutions
GKirouac
New Contributor II

I managed to include the API key directly in the script and everything works.

View solution in original post

0 Kudos
3 Replies
and1
by Esri Contributor
Esri Contributor

Hi, I wasn't able to reproduce that error message in those two samples you mentioned.

1. I assume the map data was loaded correctly in the scene right after you put your API key in the ArcGISMap component?

2. When you set your API key in the developers dashboard, did you include Geocoding and Routing services for your API key?

and1_0-1672171169656.png

 

0 Kudos
GKirouac
New Contributor II

Hi ! Yes the map data loads correctly. I am using the free version of ArcGIS for now while I'm doing tests and Geocoding + Routing are supposedly included (Not the optimized or stored versions though). And they are activated.

GKirouac_0-1672857738501.png

 

0 Kudos
GKirouac
New Contributor II

I managed to include the API key directly in the script and everything works.

0 Kudos