https://developers.redhat.com/blog/2019/12/23/tracing-net-core-applications/
https://channel9.msdn.com/Shows/The-Cloud-Native-Show/Building-Microservices-with-gRPC-and-NET
https://mailchi.mp/wildermuth/shawns-weekly-dev-tips-3214529
using GeoJSON.Net.Contrib.MsSqlSpatial; | |
using GeoJSON.Net.Feature; | |
using GeoJSON.Net.Geometry; | |
using Microsoft.SqlServer.Types; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; |
using GeoJSON.Net.Geometry; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace GeoJsonSample | |
{ | |
// | |
// Code from https://gist.github.com/oliverheilig/7777382 | |
// |
// Copyright (c) 2012-2013, Riyad Parvez | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
// | |
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
// | |
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
declare @g geography = geography::STGeomFromText('POLYGON ((-52.92612792 -29.013660989999998, -52.930613159999993 -29.02199103, -52.926695999999993 -29.030106959999998, -52.92890712 -29.040738029999996, -52.93262016 -29.04165702, -52.93072512 -29.049041969999998, -52.934951879999993 -29.05490196, -52.946164079999996 -29.056005, -52.94455092 -29.06546301, -52.95650292 -29.060360009999997, -52.960357079999994 -29.062571039999998, -52.94836512 -29.095774019999997, -52.952076 -29.09859696, -52.970573159999994 -29.09499399, -52.974554039999994 -29.096667989999997, -52.972460999999996 -29.103373979999997, -52.971860879999994 -29.10831201, -52.980072119999996 -29.101701959999996, -52.98734988 -29.105648999999996, -52.98852384 -29.12426703, -52.99938612 -29.118789989999996, -53.001855 -29.126067029999998, -52.993083959999993 -29.136593969999996, -52.999047 -29.13942096, -53.006070959999995 -29.136638969999996, -53.011964879999994 -29.13809598, -53.012454119999994 -29.141523, -53.006276879999994 -29.148397019999997, - |
// source : http://csharpindepth.com/Articles/General/Singleton.aspx | |
// | |
public sealed class Singleton | |
{ | |
private static readonly Lazy<Singleton> lazy = | |
new Lazy<Singleton>(() => new Singleton()); | |
public static Singleton Instance { get { return lazy.Value; } } | |
private Singleton() |
/// <summary> | |
/// See https://developers.google.com/maps/documentation/utilities/polylinealgorithm | |
/// </summary> | |
public static class GooglePoints | |
{ | |
/// <summary> | |
/// Decode google style polyline coordinates. | |
/// </summary> | |
/// <param name="encodedPoints"></param> | |
/// <returns></returns> |