You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just downloaded this sample app today, entered my API key, built and ran the app on a physical device. The map correctly identifies my current location. If I press and hold a given destination on the map, I can get a route (actually a couple of choices) and begin navigation. But, if I type into the Enter Location text box, an empty drop down list appears even though I typed in a valid address (I typed the exact address into the MapQuest app and it presented it in the search results view). I can see the following exception was thrown. Can you please advise on how to fix it, or better yet, update the reference app so that it works?
The android device is a Samsung Galaxy Active Pro. Android version 9. The device works well with the MapQuest app -- so it's this app that seems to have a problem.
Thanks,
Dave
2020-07-30 17:20:00.717 22173-22173/com.mapquest.navigation.sampleapp E/SearchAheadService: SearchAhead request error:
com.android.volley.ParseError: org.json.JSONException: End of input at character 0 of
at com.mapquest.android.commoncore.util.VolleyUtil.responseError(VolleyUtil.java:27)
at com.mapquest.android.searchahead.JsonNetworkResponseRequest.parseNetworkResponse(JsonNetworkResponseRequest.java:61)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
Caused by: org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at org.json.JSONObject.(JSONObject.java:159)
at org.json.JSONObject.(JSONObject.java:176)
at com.mapquest.android.commoncore.util.VolleyUtil.parseJsonObject(VolleyUtil.java:31)
at com.mapquest.android.searchahead.JsonNetworkResponseRequest.parseNetworkResponse(JsonNetworkResponseRequest.java:59)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
The text was updated successfully, but these errors were encountered:
http://searchahead-public-api-b2c-staging.cloud.mapquest.com/search/v3/prediction
The correct url, according to https://developer.mapquest.com/documentation/searchahead-api/get/ is:
http://www.mapquestapi.com/search/v3/prediction
I just downloaded this sample app today, entered my API key, built and ran the app on a physical device. The map correctly identifies my current location. If I press and hold a given destination on the map, I can get a route (actually a couple of choices) and begin navigation. But, if I type into the Enter Location text box, an empty drop down list appears even though I typed in a valid address (I typed the exact address into the MapQuest app and it presented it in the search results view). I can see the following exception was thrown. Can you please advise on how to fix it, or better yet, update the reference app so that it works?
The android device is a Samsung Galaxy Active Pro. Android version 9. The device works well with the MapQuest app -- so it's this app that seems to have a problem.
Thanks,
Dave
2020-07-30 17:20:00.717 22173-22173/com.mapquest.navigation.sampleapp E/SearchAheadService: SearchAhead request error:
com.android.volley.ParseError: org.json.JSONException: End of input at character 0 of
at com.mapquest.android.commoncore.util.VolleyUtil.responseError(VolleyUtil.java:27)
at com.mapquest.android.searchahead.JsonNetworkResponseRequest.parseNetworkResponse(JsonNetworkResponseRequest.java:61)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
Caused by: org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at org.json.JSONObject.(JSONObject.java:159)
at org.json.JSONObject.(JSONObject.java:176)
at com.mapquest.android.commoncore.util.VolleyUtil.parseJsonObject(VolleyUtil.java:31)
at com.mapquest.android.searchahead.JsonNetworkResponseRequest.parseNetworkResponse(JsonNetworkResponseRequest.java:59)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:123)
The text was updated successfully, but these errors were encountered: