MapQuest
When to Use It
Use Geocoding.MapQuest when you have an active MapQuest commercial integration and want the provider behind the repository's shared IGeocoder and IBatchGeocoder abstractions.
Package
powershell
Install-Package Geocoding.MapQuestOfficial References
How to Get an API Key
- Create or sign in to a MapQuest developer account.
- Create an application in the MapQuest developer portal.
- Copy the generated application key.
- Use that key with
MapQuestGeocoder.
Minimal Setup
csharp
using System.Collections.Generic;
using System.Threading;
using Geocoding;
using Geocoding.MapQuest;
CancellationToken cancellationToken = default;
IGeocoder geocoder = new MapQuestGeocoder("your-mapquest-key");
IEnumerable<Address> results = await geocoder.GeocodeAsync(
"1600 Pennsylvania Ave NW Washington DC 20500",
cancellationToken);Provider-Specific Features
MapQuestGeocoderimplementsIBatchGeocoderfor batch forward geocoding.- The provider keeps legacy OpenStreetMap mode disabled and rejects attempts to enable it.
Operational Notes
- Use the commercial MapQuest API only.
UseOSM = trueis intentionally rejected. - Expect transport and status failures to include request context in the thrown exception message.
- MapQuest response ordering favors more precise results before broader regional matches.