Mapquest: This key is not authorized for this service
NickName:writeToBhuwan Ask DateTime:2015-04-10T04:16:12

Mapquest: This key is not authorized for this service

I am trying to use Geocoding.net to reverse geocode my latitude and longitude to a formatted address. I want a address from MapQuest and not from other providers like Yahoo, google and bing. This is my Code:

    try
    {
        IGeocoder geocoder = new MapQuestGeocoder("Fmjtd%7Cluu82q6***********");
        var addresses = geocoder.ReverseGeocode(latitude, longitude);
        return ("Formatted address :  " + addresses.First().FormattedAddress);
    }
    catch (Exception exception)
    {
        return exception.Message;
    }

This code catches an exception and thorws this error "This key is not authorized for this service."

I know that this error occurs when I try to hit the Enterprise API of Geocoder i.e http://www.mapquestapi.com/geocoding/v1/reverse?key=*******************

For free and open source usage, I should hit this API:

http://open.mapquestapi.com/geocoding/v1/address?key=YOUR-KEY-HERE

How can I do this? Is there any option of passing the POST URL in the constructor itself? Or any other way?

Copyright Notice:Content Author:「writeToBhuwan」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29548124/mapquest-this-key-is-not-authorized-for-this-service

Answers
Russ 2015-04-09T20:24:08

Scanning over the open-source code of Geocoding.net, it looks like you just need to set the \"UseOSM\" property of your geocoder object to true:\n\ngeocoder.UseOSM = true;\n",


More about “Mapquest: This key is not authorized for this service” related questions

Mapquest: This key is not authorized for this service

I am trying to use Geocoding.net to reverse geocode my latitude and longitude to a formatted address. I want a address from MapQuest and not from other providers like Yahoo, google and bing. This i...

Show Detail

This key is not authorized for this service

We have been using the same key for over a month now and we just notice a few days ago that it is no longer working. We are having trouble searching for answers on the web, we hope someone here can

Show Detail

mapquest app key error 403

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 ...

Show Detail

MapQuest API key no longer working

We have been using a MapQuest API key for a few years now but at some point in the last 24hrs or so the maps have stopped working and we are getting an error: "This key is not authorized for this s...

Show Detail

Does MapQuest allow us to draw routes on the Map on the free version?

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. I...

Show Detail

Mapquest API key not recognized

I signed up for the Mapquest API service, and I am now testing my application, using PHP. Under Manage Keys, I created a new key, and Mapquest gave me: Consumer Key Consumer Secret I clicked on

Show Detail

removeChild for a map (mapQuest)

I'm trying to close the map when the user clicks on the "Back" button. I'm using AS3 for Adobe AIR app. I've tried to call a function with removeChild(MyMap) in order to close it, but it's not

Show Detail

mapquest not recognized in angular

I am trying to use mapquest for adding a traffic layer in angular . I believe i have included all the scripts needed to run them in index.html Feel free to share some other way to add traffic using

Show Detail

Add MapQuest Map with AS3

I'm trying to add a mapquest map to my flash application, but it only ever publishes a blank swf. I've already imported the latest mapquest SWC file, I have a key, and I'm using the code I found on...

Show Detail

Issue with Loading mapquest script dynamically

In ASP.NET Core application i have Html template and corresponding Javascript stored in the database as string (in two separate columns). Html Template The script and link tag are part of the tem...

Show Detail