Skip to content

The Pelias .NET client is a software library written in the .NET programming language that facilitates seamless integration with the Pelias geocoding engine. It provides developers with a set of functions and methods to interact with Pelias APIs, enabling the conversion of addresses to geographic coordinates and vice versa.

License

Notifications You must be signed in to change notification settings

andersoncarlosfs/pelias-dotnet

Repository files navigation

Pelias.NET

The Pelias .NET is a library written in the .NET programming language that facilitates seamless integration with the Pelias geocoding engine. It provides developers with a set of functions and methods to interact with Pelias APIs, enabling the conversion of addresses to geographic coordinates and vice versa.

Example

using Pelias.NET.Controller.Services;
using Pelias.NET.Model.Objects.Pelias.Protocols.Http.Requests.Queries.Geocoding;

namespace Pelias.NET
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var address = "3229 NW Pittock Dr, Portland, OR 97210, United States";

            Console.WriteLine($"Query: {address}\n");

            var client = new Client("http://localhost:4000/");

            var request = new SearchParameters() { Text = address };

            var response = await client.Search(request);

            using (StreamReader reader = new StreamReader(response))
            {
                Console.WriteLine(reader.ReadToEnd());
            }
        }
    }
}

About

The Pelias .NET client is a software library written in the .NET programming language that facilitates seamless integration with the Pelias geocoding engine. It provides developers with a set of functions and methods to interact with Pelias APIs, enabling the conversion of addresses to geographic coordinates and vice versa.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages