Skip to content

Instantly share code, notes, and snippets.

View rbrundritt's full-sized avatar

Ricky Brundritt rbrundritt

View GitHub Profile
@rbrundritt
rbrundritt / gist:9ddc0005dfbb16935abaebf6bf337fbd
Created October 28, 2022 17:10
A simple code example that uses the Azure Maps .NET client library to retrieve a vector tile, parse it using the NetTopologySuite.IO.VectorTile libraries, and then extract the unique road names. Uses the https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/maps and https://github.com/NetTopologySuite/NetTopologySuite.IO.VectorTiles libraries.
/*
* A simple code example that uses the Azure Maps .NET client library to retrieve a vector tile,
* parse it using the NetTopologySuite.IO.VectorTile libraries, and then extract the unique road names.
*/
using Azure;
using NetTopologySuite.IO.VectorTiles.Mapbox;
//Input lat/lon, and zoom.
double latitude = 47.6;