Skip to content

panoramicdata/Mapbox.Api

Repository files navigation

Mapbox.Api

Nuget

To use the Mapbox API nuget package:

Visual Studio

  1. Open your project in Visual Studio
  2. Right-click on the project and click "Manage Nuget packages"
  3. Find the package "Mapbox.Api" - install the latest version

Example code (C# 8.0):

using Mapbox.Api;
using System;
using System.Threading.Tasks;

namespace My.Project
{
	public static class Program
	{
		public static async Task Main()
		{
			var MapboxClient = new MapboxClient(new MapboxClientOptions
			{
				AccessToken = "0123456789abcdef0123456789abcdef01234567"
			});

			var geocoding = await MapboxClient
				.Geocoding
				.GetForwardsAsync("Greenwich Observatory, Greenwich, London")
				.ConfigureAwait(false);

			Console.WriteLine($"Location: {geolocation}");
		}
	}
}

API Documentation

The Mapbox API documentation can be found here:

About

A Mapbox API nuget package for .NET developers

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages