I am using the mapQuest Android SDK for developing a Navigation app. Whenever I try to create a route with the Route Manager, I get the following error
Status Code: 403[This key is not authorized for this service. If you do not have a key, you can obtain a free key by registering at http://developer.mapquest.com.]
This occurred all of a sudden and since last week I have not been able to form a route
The app key is open and free edition and it starts with F
Creating a new app key does not solve the problem either
It seems the best approach for now is to use your key to hit the Directions API webservice, then parse the result into a line overlay that can be shown on your map, html for a narrative webview, or both.
This thread from the Mapquest developers forum is a good starting point:
http://developer.mapquest.com/web/products/forums/-/message_boards/message/1522959
Related
I have an Angular 12 Ionic app that is using the Google Maps API via #angular/google-maps package (https://github.com/angular/components/tree/master/src/google-maps#readme). The application we are building will be used in areas where internet access can be spotty at best. We are attempting to maintain functionality of the map when internet is lost. IE, potentially cache or store the loaded map locally to reference should we go offline.
We are expecting the user to be online when we initialize the map and load any polylines & markers
Should the user then go offline, and navigate around the app, when coming back to the map we would like to show the map, polylines and markers that were previously loaded.
What currently is happening is the the component is being destroyed and then reloaded when navigated back causing a reload of the map which cannot happen because we are offline. However, if we were able to cache or locally store that map, then we can load it from the cache/local until the user comes back online.
Using the package described above we are looking at trying to serialize the google.maps object to json for storage, however it is causing an issue.
let mapTest: google.maps.Map;
const center: google.maps.LatLngLiteral = { lat: centerPoint.lat, lng: centerPoint.lng };
mapTest = new google.maps.Map(document.getElementById('map') as HTMLElement, {
center,
zoom: 11
});
This is a basic typescript implementation as provided by the Google API Documentation (https://developers.google.com/maps/documentation/javascript/using-typescript). When we attempt to stringify the map we get the following error
Same error shows if we stringify mapTest.data.
Question is, is there anything we can do to locally store the google.map object or the google.map.data object? This ultimately will be put onto an Android device using Ionic, is something like this possible with Native Android maps? Or is this just not a feasible task at all
The Google Maps JavaScript API cannot be used offline.
See feature request: API feature to download a map for offline use.
I need to use "nearby search" in my app. So I have opened a new api key specifically for Places Api. (the regular Places api, not the Android one) and it worked perfectly for a short time.
However, suddenly I started receiving OVER_QUERY_LIMIT error. I tried replacing the api key with a new one, but that doesn't help. I even tried opening a new project.. still didn't help.
The reason you are getting that error message is because you have used up all your API requests and passed over your quota
From the Documentation it says: "OVER_QUERY_LIMIT" indicates that you are over your quota.
Source: https://developers.google.com/maps/documentation/geocoding/intro#StatusCodes
I have an app that has an old MapQuest key and I wanted to show a route on the Map. However, it didn't work, and on my Callback I got this message:
This key is not authorized for this service. If you do not have a key,
you can obtain a free key by registering at
http://developer.mapquest.com.
Does it mean my key is invalid, expired, or maybe I have to pay to have this service?
I visited MapQuest AppKeys page today (Mar 29 2015) and it tells me that:
The ability to create Free & Open AppKeys has been temporarily paused.
Can someone confirm whether routing is allowed with a free key?
You can draw a route on a MapQuest map with a Free&Open Key, but you cannot use their service (I mean use Android SDK for routing) because it's not free.
Although, I've created a demo app that get directions from MapQuest'S Web Service (wich is free) and then uses that response to draw the route. You can also request guidance information.
Take a look at my github repo: https://github.com/sebasira/Android-RouteWebService
Hope it helps you! (it was also a headache for me at the time)
I am working on android app which uses google's places autocomplete API.
When tried to hit following URL
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types=geocode&sensor=false&language=en&key=apiKey
I got the response as below.
{
"predictions" : [],
"status" : "REQUEST_DENIED"
}
I got the API key from link below
Google APIs console
also i have enabled Google Maps API v3 service.
As per API documentation REQUEST_DENIED response is generally due to lack of sensor parameter but which i have already provided.
After hitting above URL directly in browser also i am getting REQUEST_DENIED response.
Is anything else i have to do?
Are you sure your key is correct and that you have enough quota left? Try generating a new key and checking that you have the referrals correct/set to empty.
You also may need to wait up to 5 minutes for the key to become active.
FWIW I tested your URL with my own key and it worked fine.
I was also facing the same issue "REQUEST_DENIED" when using google places API for my android app. As per Google API console help "Android and iOS keys are only supported by some APIs, such as the Google Maps Android API or the Google Maps SDK for iOS." (https://developers.google.com/console/help/).
In my case problem solved by using the 'key for bowser apps' instead of using android/iOs keys.
I dont see input parameter listed on API page http://code.google.com/apis/maps/documentation/places/#PlaceSearches
What does it do? If you really need to have it, try moving it to the last item. Or just try removing it first to see if it works.
The problem that you are facing is may be related to API_KEY.You inserted something like
letter "l" instead of capital "i". Capital i and el(l) looks same in the xcode
environment.Try to insert correct letter will solve the issue.
while the application execute only the mapView back ground and the logo at the given location is appear. the map is not able to visible.
Have You created map API key for your PC? If not get the Map API key from here for your PC and use it in your app. Hope this will help you.
Mostly it happens when :
you miss to add the INTERNET permission in manifest.xml
you do not have a proper API key.
Internet is not working on your simulator.
check these conditions..and if you are using internet behind the proxy , then your AVD cannot load any application that is using the map.