OpenRouteService Road Navigation Extension

This is what can be found in the App Inventor code :grin: thought i found it :grin:

2 Likes

Ohh… :astonished:

These are app inventor specific errors :sweat_smile:.

I disturbed the open route service staff for that and they too got confused with the error codes. :sweat_smile:

Don’t Tell Them!! :shushing_face: :shushing_face: :wink:

2 Likes

I think I need to ask the app inventor staff to tell which error refers to what because I can only understand ERROR_INVALID_API_KEY = 4001; and ERROR_NO_ROUTE_FOUND = 4004; but others such as ERROR_UNABLE_TO_REQUEST_DIRECTIONS,
ERROR_ROUTING_SERVICE_ERROR = 4003; are not understood by its name.

I mean ERROR_UNABLE_TO_REQUEST_DIRECTIONS is not telling its actual meaning by its name. Why it is unable to request direction it is not describing it. Is there an error in the code or the values or the server. It is too unclear about that.

1 Like

Actually you can know the errors from the java code.This error isn’t used in the actual source code.As i understood from the code.App inventor is going to add the ability to request directions from any directions api using a server url :shushing_face:. I found that This error is used there and isn’t used in any place else.That means it won’t appear in your code as it doesn’t belong to openRouteService.So simply ignore it. :sweat_smile:
image

That happens if the response code isn’t equal 200 which means that a server error occured.( ! means not )
EDIT = that error also is in the private implementation of requesting directions from a custom api.So it also not belong to OpenRouteService
image
You can see the private implementation here:

1 Like

Means it doesn’t use OpenRouteService?
And where did you find this?

1 Like

That’s what i see.But maybe OpenRouteService have another 4003 error

I saw that in the first lines of code they have defined serviceURL as the api.openrouteservice.org/directions/V2/api/

See

ORS URL to ORS api

Service url to ORS URL

That is a something to support the implementation. it sets the service url by default to the openrouteservice url.In the feature there will be a property setter for that.

Ok, but how do you know that?
Did you see this


That is Reserved for future use in case they decide to run their own service some day.

1 Like

I think till that Kodular will include it in the creator as @Conor said in staring posts.

1 Like

Yes, that what i meant. As you see. Beside the @SimpleProperty interface.There is (userVisible = false) which means that the user can’t see it.

1 Like

I uploaded aia file given by the developer. and replaced api key with mine., rest everything is same.
And after opening app, it shows ERROR 4003

1 Like

block code just this???

Is it free or not? How many times can I send a request every day?

why show error 4003? :thinking: :sleepy:

Please read and look into the first post !!!
You can found and download the extension…

The Extension is totally FREE but the service by openrouteservice.org has limits on its free tier.

But it is enough to be used with a normal mobile app.


API Restrictions | Openrouteservice

And its pricing has only one plan i.e. FREE plan


Plans | Openrouteservice

Directions (2,000 requests per day @40 requests per minute)

The AIA File Had little code mismatches so it was showing the errors. Try with the latest AIA, it should work :slightly_smiling_face:.

1 Like

This Extension is no longer needed as Kodular has its own navigation component now…
Read More here

However, if you want to still use this extension, you can as it is not creating any issues in kodular creator v1.4D.0. This helps you to go to other builder easily, But I suggest you to stay here :slightly_smiling_face:.

Happy Koding

But I will Still Try Update This Extension For More Features :wink:

4 Likes

It won’t Works while downloded aia file and i added KEY also it won’t works.