https://github.com/panoramicdata/mapbox.api
A Mapbox API nuget package for .NET developers
https://github.com/panoramicdata/mapbox.api
Last synced: 4 months ago
JSON representation
A Mapbox API nuget package for .NET developers
- Host: GitHub
- URL: https://github.com/panoramicdata/mapbox.api
- Owner: panoramicdata
- License: mit
- Created: 2020-05-13T17:56:50.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-02-01T19:21:00.000Z (4 months ago)
- Last Synced: 2026-02-02T03:47:10.582Z (4 months ago)
- Language: C#
- Size: 66.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Mapbox.Api
[](https://www.nuget.org/packages/Mapbox.Api/)
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)
``` C#
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:
- [Mapbox API Documentation](https://docs.mapbox.com/api)