VOOZH about

URL: https://www.nuget.org/packages/OsmSharp.IO.API/

⇱ NuGet Gallery | OsmSharp.IO.API 1.0.5




OsmSharp.IO.API 1.0.5

dotnet add package OsmSharp.IO.API --version 1.0.5
 
 
NuGet\Install-Package OsmSharp.IO.API -Version 1.0.5
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OsmSharp.IO.API" Version="1.0.5" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OsmSharp.IO.API" Version="1.0.5" />
 
Directory.Packages.props
<PackageReference Include="OsmSharp.IO.API" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OsmSharp.IO.API --version 1.0.5
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OsmSharp.IO.API, 1.0.5"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OsmSharp.IO.API@1.0.5
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OsmSharp.IO.API&version=1.0.5
 
Install as a Cake Addin
#tool nuget:?package=OsmSharp.IO.API&version=1.0.5
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

OsmSharp.IO.API

👁 NuGet Badge

This is a simple C# client to allow using OSM API easily over REST. Please read the API's documentation and use it responsibly. Misuse can have an adverse affect on the OSM ecosystem. Pull requests are welcome. You will need VisualStudio, VS Code or Rider to modify this project.

Features

  • Supports Logging using ILogger
  • Supports Authentication with OAuth 2
  • Supports every documented operation of the Osm Api v0.6
  • Is thread safe

Example Usage

// Create a client factory (pointing at the dev server)
var clientFactory = new ClientsFactory(null, new HttpClient(),
	"https://master.apis.dev.openstreetmap.org/api/");
// After testing, use "https://www.openstreetmap.org/api/" for production

Get a Node

var client = clientFactory.CreateNonAuthClient();
var node = await client.GetNode(100);

Delete a Node (map changes require OAuth)

var authClient = clientFactory.CreateOAuth2Client("oAuth-token");
var changeSetTags = new TagsCollection() { new Tag("comment", "Deleting a node.") };
var changeSetId = await client.CreateChangeset(changeSetTags);
node.Version = await client.DeleteElement(changeSetId, node);
await client.CloseChangeset(changeSetId);

See the functional tests for examples of each operation.

Supported Operations

🌕 = Does not use authentication

🌗 = With or without authentication (behavior may differ)

🌑 = Requires authentication

General Api Stuff

  • 🌕 Get Api versions
  • 🌕 Get Api capabilities
  • 🌕 Get a map section

Change Sets

  • 🌕 Get a specific changeset's metadata
  • 🌕 Get a specific changeset's changes
  • 🌕 Search for changesets
  • 🌑 Create a new changeset with metadata
  • 🌑 Add changes to an open changeset
  • 🌑 Update an open changeset's metadata
  • 🌑 Close an open changeset
  • 🌑 Add comments to a changeset
  • 🌑 Subscribe to a changeset
  • 🌑 UnSubscribe to a changeset

Map Elements

  • 🌕 Get an element
  • 🌕 Get an element's version history
  • 🌕 Get a specific version of an element
  • 🌕 Search for elements
  • 🌕 Get relations containing a specific element
  • 🌕 Get ways containing a specific node
  • 🌕 Get a relation and all of its elements
  • 🌕 Get a way and all of its nodes
  • 🌑 Create a new element
  • 🌑 Update an element
  • 🌑 Delete an element

Gpx Files

  • 🌕 Get trackpoints in an area
  • 🌗 Get a gpx file's metadata
  • 🌗 Get a gpx file's original upload data
  • 🌑 Get current user's gpx files
  • 🌑 Create a new gpx file
  • 🌑 Update a gpx file's metadata
  • 🌑 Delete a gpx file

User Info

  • 🌕 Get details about a user
  • 🌕 Get details about many users
  • 🌑 Get current user's permissions
  • 🌑 Get current user's details
  • 🌑 Get current user's preferences
  • 🌑 Update current user's preferences
  • 🌑 Get a current user's preference
  • 🌑 Update a current user's preference
  • 🌑 Delete a current user's preference

Notes

  • 🌕 Search for notes
  • 🌕 Get an RSS feed of notes in an area
  • 🌕 Get a note
  • 🌗 Create a new note
  • 🌑 Comment on a note
  • 🌑 Close a note
  • 🌑 ReOpen a note

Contribute

Issues and pull requests are welcome.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 772 6/11/2025
1.0.4 7,836 12/30/2022
1.0.3 858 12/30/2022
1.0.2 851 12/30/2022
1.0.1 862 12/30/2022
0.0.9 845 12/30/2022