This is what can be found in the App Inventor code thought i found it
Ohh…
These are app inventor specific errors .
I disturbed the open route service staff for that and they too got confused with the error codes.
Don’t Tell Them!!
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.
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 . 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.
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
You can see the private implementation here:
Means it doesn’t use OpenRouteService?
And where did you find this?
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/
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.
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.
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
block code just this???
Is it free or not? How many times can I send a request every day?
why show error 4003?
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 .
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 .
Happy Koding
But I will Still Try Update This Extension For More Features