-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 487f00c
Showing
24 changed files
with
1,117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Catch all for anything we forgot. Add rules if you get CRLF to LF warnings. | ||
* text=auto | ||
|
||
# Text files that should be normalized to LF in odb. | ||
*.cs text eol=lf diff=csharp | ||
*.xaml text | ||
*.config text | ||
*.c text | ||
*.h text | ||
*.cpp text | ||
*.hpp text | ||
|
||
*.sln text | ||
*.csproj text | ||
*.vcxproj text | ||
|
||
*.md text | ||
*.tt text | ||
*.sh text | ||
*.ps1 text | ||
*.cmd text | ||
*.bat text | ||
*.markdown text | ||
*.msbuild text | ||
|
||
|
||
# Binary files that should not be normalized or diffed | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.ico binary | ||
*.rc binary | ||
|
||
*.pfx binary | ||
*.snk binary | ||
*.dll binary | ||
*.exe binary | ||
*.lib binary | ||
*.exp binary | ||
*.pdb binary | ||
*.sdf binary | ||
*.7z binary | ||
|
||
# Generated file should just use CRLF, it's fiiine | ||
SolutionInfo.cs text eol=crlf diff=csharp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.userosscache | ||
*.sln.docstates | ||
|
||
# User-specific files (MonoDevelop/Xamarin Studio) | ||
*.userprefs | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Dd]ebugPublic/ | ||
[Rr]elease/ | ||
[Rr]eleases/ | ||
x64/ | ||
x86/ | ||
build/ | ||
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
|
||
# Visual Studio 2015 cache/options directory | ||
.vs/ | ||
# Uncomment if you have tasks that create the project's static files in wwwroot | ||
#wwwroot/ | ||
|
||
# MSTest test Results | ||
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
# NUNIT | ||
*.VisualState.xml | ||
TestResult.xml | ||
|
||
# Build Results of an ATL Project | ||
[Dd]ebugPS/ | ||
[Rr]eleasePS/ | ||
dlldata.c | ||
|
||
# DNX | ||
project.lock.json | ||
artifacts/ | ||
|
||
*_i.c | ||
*_p.c | ||
*_i.h | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.tmp_proj | ||
*.log | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
*.pidb | ||
*.svclog | ||
*.scc | ||
|
||
# Chutzpah Test files | ||
_Chutzpah* | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opendb | ||
*.opensdf | ||
*.sdf | ||
*.cachefile | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
*.sap | ||
|
||
# TFS 2012 Local Workspace | ||
$tf/ | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
*.[Rr]e[Ss]harper | ||
*.DotSettings.user | ||
|
||
# JustCode is a .NET coding add-in | ||
.JustCode | ||
|
||
# TeamCity is a build add-in | ||
_TeamCity* | ||
|
||
# DotCover is a Code Coverage Tool | ||
*.dotCover | ||
|
||
# NCrunch | ||
_NCrunch_* | ||
.*crunch*.local.xml | ||
nCrunchTemp_* | ||
|
||
# MightyMoose | ||
*.mm.* | ||
AutoTest.Net/ | ||
|
||
# Web workbench (sass) | ||
.sass-cache/ | ||
|
||
# Installshield output folder | ||
[Ee]xpress/ | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish/ | ||
|
||
# Publish Web Output | ||
*.[Pp]ublish.xml | ||
*.azurePubxml | ||
# TODO: Comment the next line if you want to checkin your web deploy settings | ||
# but database connection strings (with potential passwords) will be unencrypted | ||
*.pubxml | ||
*.publishproj | ||
|
||
# NuGet Packages | ||
*.nupkg | ||
# The packages folder can be ignored because of Package Restore | ||
**/packages/* | ||
# except build/, which is used as an MSBuild target. | ||
!**/packages/build/ | ||
# Uncomment if necessary however generally it will be regenerated when needed | ||
#!**/packages/repositories.config | ||
|
||
# Windows Azure Build Output | ||
csx/ | ||
*.build.csdef | ||
|
||
# Windows Azure Emulator | ||
ecf/ | ||
rcf/ | ||
|
||
# Windows Store app package directory | ||
AppPackages/ | ||
BundleArtifacts/ | ||
|
||
# Visual Studio cache files | ||
# files ending in .cache can be ignored | ||
*.[Cc]ache | ||
# but keep track of directories ending in .cache | ||
!*.[Cc]ache/ | ||
|
||
# Others | ||
ClientBin/ | ||
~$* | ||
*~ | ||
*.dbmdl | ||
*.dbproj.schemaview | ||
*.pfx | ||
*.publishsettings | ||
node_modules/ | ||
orleans.codegen.cs | ||
|
||
# RIA/Silverlight projects | ||
Generated_Code/ | ||
|
||
# Backup & report files from converting an old project file | ||
# to a newer Visual Studio version. Backup files are not needed, | ||
# because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
UpgradeLog*.htm | ||
|
||
# SQL Server files | ||
*.mdf | ||
*.ldf | ||
|
||
# Business Intelligence projects | ||
*.rdl.data | ||
*.bim.layout | ||
*.bim_*.settings | ||
|
||
# Microsoft Fakes | ||
FakesAssemblies/ | ||
|
||
# GhostDoc plugin setting file | ||
*.GhostDoc.xml | ||
|
||
# Node.js Tools for Visual Studio | ||
.ntvs_analysis.dat | ||
|
||
# Visual Studio 6 build log | ||
*.plg | ||
|
||
# Visual Studio 6 workspace options file | ||
*.opt | ||
|
||
# Visual Studio LightSwitch build output | ||
**/*.HTMLClient/GeneratedArtifacts | ||
**/*.DesktopClient/GeneratedArtifacts | ||
**/*.DesktopClient/ModelManifest.xml | ||
**/*.Server/GeneratedArtifacts | ||
**/*.Server/ModelManifest.xml | ||
_Pvt_Extensions | ||
|
||
# Paket dependency manager | ||
.paket/paket.exe | ||
|
||
# FAKE - F# Make | ||
.fake/ | ||
|
||
# Tools | ||
tools/ | ||
|
||
# Packaging | ||
packaging/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Deploying a new release | ||
|
||
|
||
When we're ready to deploy a new release, we need to do the following steps: | ||
|
||
* Create a branch named `release`. | ||
* Update [`ReleaseNotes.md`](ReleaseNotes.md). Note that the format is | ||
important as we parse the version out and use that for the NuGet packages. | ||
* Push the branch to GitHub and create a pull request. This will kick off the | ||
AppVeyor build of the NuGet package with this new version. If you're impatient, you can run `.\build CreatePackages` and get the packages locally. If your having issues creating a package read: https://github.com/octokit/octokit.net/issues/899 | ||
* Test! | ||
* When you're satisfied with this release, push the package to NuGet. | ||
* Create a tag `git tag v#.#.#`. For example, to create a tag for 1.0.0 | ||
`git tag v1.0.0` | ||
* Push the tag to the server. `git push --tags` | ||
* Accept the pull request. | ||
* Create a [new release](https://github.com/ghuntley/geocoordinate/releases/new) | ||
using the tag you just created and pasting in the release notes you just wrote up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Microsoft Public License (Ms-PL) | ||
|
||
This license governs use of the accompanying software. If you use the software, | ||
you accept this license. If you do not accept the license, do not use the | ||
software. | ||
|
||
1. Definitions | ||
The terms "reproduce," "reproduction," "derivative works," and "distribution" | ||
have the same meaning here as under U.S. copyright law. A "contribution" is the | ||
original software, or any additions or changes to the software. A "contributor" | ||
is any person that distributes its contribution under this license. "Licensed | ||
patents" are a contributor's patent claims that read directly on its | ||
contribution. | ||
|
||
2. Grant of Rights | ||
|
||
(A) Copyright Grant- Subject to the terms of this license, including the license | ||
conditions and limitations in section 3, each contributor grants you a | ||
non-exclusive, worldwide, royalty-free copyright license to reproduce its | ||
contribution, prepare derivative works of its contribution, and distribute its | ||
contribution or any derivative works that you create. | ||
|
||
(B) Patent Grant- Subject | ||
to the terms of this license, including the license conditions and limitations | ||
in section 3, each contributor grants you a non-exclusive, worldwide, | ||
royalty-free license under its licensed patents to make, have made, use, sell, | ||
offer for sale, import, and/or otherwise dispose of its contribution in the | ||
software or derivative works of the contribution in the software. | ||
|
||
3. Conditions and Limitations | ||
|
||
(A) No Trademark License- This license does not grant you rights to use any | ||
contributors' name, logo, or trademarks. | ||
(B) If you bring a patent claim against any contributor over patents that you | ||
claim are infringed by the software, your patent license from such contributor | ||
to the software ends automatically. | ||
(C) If you distribute any portion of the software, you must retain all | ||
copyright, patent, trademark, and attribution notices that are present in the | ||
software. | ||
(D) If you distribute any portion of the software in source code form, you may | ||
do so only under this license by including a complete copy of this license with | ||
your distribution. If you distribute any portion of the software in compiled or | ||
object code form, you may only do so under a license that complies with this | ||
license. | ||
(E) The software is licensed "as-is." You bear the risk of using it. The | ||
contributors give no express warranties, guarantees or conditions. You may have | ||
additional consumer rights under your local laws which this license cannot | ||
change. To the extent permitted under your local laws, the contributors exclude | ||
the implied warranties of merchantability, fitness for a particular purpose and | ||
non-infringement. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
![Icon](https://i.imgur.com/OfoiwTs.png) | ||
# GeoCoordinate | ||
|
||
GeoCoordinate is a Portable Class Library compatible implementation of System.Device.Location.GeoCoordinate. It is an exact 1:1 API compliant implementation and will be supported until MSFT [sees it fit to embed the type](https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/5221530-geocoordinate-class-included-in-portable-class-lib). Which at that point this implementation will cease development/support and you will be able to simply remove this package and everything will still work. | ||
|
||
# Supported Platforms | ||
|
||
* Mono | ||
* .NET 4.5 | ||
* .NET Core | ||
* Windows Phone 8.x | ||
* Universal Windows Platform | ||
* Xamarin iOS | ||
* Xamarin Android | ||
|
||
# Installation | ||
Installation is done via NuGet: | ||
|
||
PM> Install-Package GeoCoordinate | ||
|
||
# Usage | ||
|
||
GeoCoordinate pin1 = new GeoCoordinate(lat, lng); | ||
GeoCoordinate pin2 = new GeoCoordinate(lat, lng); | ||
|
||
double distanceBetween = pin1.GetDistanceTo(pin2); | ||
|
||
For more examples, refer to the MSDN reference documentation over at: https://msdn.microsoft.com/en-us/library/system.device.location.geocoordinate(v=vs.110).aspx | ||
|
||
# With thanks to | ||
* The icon "[Map Marker](https://thenounproject.com/term/map-marker/60112)" designed by [julianne](https://thenounproject.com/janne232) from The Noun Project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### New in 0.1.0 (released 2016/01/05) | ||
* Initial release |
Oops, something went wrong.