dmbfm / unity-ar-gps-location-mapbox-route-sample

Example project showcasing the Navigation feature of the AR+GPS location unity asset, alongside the Mapbox SDK.
MIT License
39 stars 19 forks source link

Unable to load map on latest unity version 2022.3.20f1 #18

Open subbu5280 opened 7 months ago

subbu5280 commented 7 months ago

! 2 3 4 I am using latest version of Unity 2022.3.20f1 version. ARsession origin is deprecated Instead we need to use XR Origin. I used it, Though map is not loading. I am shared error logs also.

Error log is : [MapboxApi#QueryRoute]: Error -> HTTP/1.1 422 Unprocessable Entity

Please let me know am i missed anything here.

dmbfm commented 7 months ago

What are the settings for the Mapbox Route component?

subbu5280 commented 6 months ago

1 Can you check my attachment.

dmbfm commented 6 months ago

Which device are you using when you get this error?

subbu5280 commented 6 months ago

In Unity editor also not working. My development mobile is Pixel3A(Android). If possible can you update the sample project.

dmbfm commented 6 months ago

I am not able to reproduce your issue. Where are you when you are testing this? It is possible that mapbox is not able to create a route from your location sometimes

subbu5280 commented 6 months ago

I am from India, Bangalore. I hope mapbox will work on india right?

dmbfm commented 6 months ago

I would think so, but you will need to check with Mapbox for that. Maybe check their API playground to see if your requests give valid responses: https://docs.mapbox.com/playground/directions/