To use the Mapbox API nuget package:
- Open your project in Visual Studio
- Right-click on the project and click "Manage Nuget packages"
- Find the package "Mapbox.Api" - install the latest version
usingMapbox.Api;usingSystem;usingSystem.Threading.Tasks;namespaceMy.Project{publicstaticclassProgram{publicstaticasyncTaskMain(){varMapboxClient=newMapboxClient(newMapboxClientOptions{AccessToken="0123456789abcdef0123456789abcdef01234567"});vargeocoding=awaitMapboxClient.Geocoding.GetForwardsAsync("Greenwich Observatory, Greenwich, London").ConfigureAwait(false);Console.WriteLine($"Location: {geolocation}");}}}The Mapbox API documentation can be found here: