• Stars
    star
    175
  • Rank 216,796 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created about 3 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Golang package to compute the distance between two geographic latitude, longitude coordinates

geodist

GoLang package to compute the distance between two geographic latitude, longitude coordinates

Algorithm Comparison

Example

	var newYork = geodist.Coord{Lat: 40.7128, Lon: 74.0060}
	var sanDiego = geodist.Coord{Lat: 32.7157, Lon: 117.1611}
	miles, km, ok := geodist.VincentyDistance(newYork, sanDiego)
	if !ok {
		fmt.Println("Unable to compute Vincenty Distance.")
		return
	}
	fmt.Printf(" [Vincenty] New York to San Diego: %.3f m, %.3f km\n", miles, km)

	var elPaso = geodist.Coord{Lat: 31.7619, Lon: 106.4850}
	var stLouis = geodist.Coord{Lat: 38.6270, Lon: 90.1994}
	miles, km = geodist.HaversineDistance(elPaso, stLouis)
	fmt.Printf("[Haversine] El Paso to St. Louis:  %.3f m, %.3f km\n", miles, km)

Online Calculators

Acknowledgements

More Repositories

1

less-Windows

GNU less compiled for Windows 10 & 11. Stand-alone version with no dependencies.
Python
193
star
2

TtlMap

A golang map in which entries expire after given a time period
Go
53
star
3

gofwd

A cross-platform TCP port forwarder with Duo 2FA and Geo-IP integration
Go
45
star
4

universe

A group of my various scripts, see the Manifest (below)
Python
34
star
5

dtdiff

Golang package and command line tool to return or output the difference between date, time or duration
Go
32
star
6

spotprice

Quickly get AWS spot instance pricing
Go
28
star
7

sqs_clipboard

Use AWS SQS as a clipboard to copy and paste across different systems and platforms
Go
21
star
8

ipinfo

Return IP address info including geographic location and distance when given IP address, email address, host name or URL
Go
20
star
9

duu

Directory Usage Utility
Python
18
star
10

DateTimeMate

Golang package and CLI to compute the difference between date, time or duration
Go
14
star
11

chars

Determine the end-of-line format, tabs, bom, and nul characters
Go
13
star
12

photo_id_resizer

Resize photo ID images using face recognition technology
Go
12
star
13

HTTPie-Windows

a stand-alone HTTPie windows binary
12
star
14

terraform_cloudfront_builder

Use Terraform to create an AWS CloudFront website, ACM certificate, Route53 DNS entries and a S3 bucket
HCL
9
star
15

spo_view_it

Chrome extension to force SharePoint Online to use Reading View for Word and Excel documents
JavaScript
8
star
16

timeit

A cross-platform CLI tool used to time the duration of the given command
Go
6
star
17

utils

a small collection of (possibly) outdated command-line utilities
Batchfile
6
star
18

fstat

Get info for a list of files across multiple directories
Go
5
star
19

freq

Display the frequency of each line in a file or from STDIN
Go
3
star
20

compinfo

Display basic computer info
C#
3
star
21

tcpscan

A fast, simple, multi-threaded cross-platform IPv4 TCP port scanner
Python
3
star
22

dcmp

Compare files within two directory trees for equivalency
Python
3
star
23

github_actions_notes

My personal notes about Github Actions
3
star
24

flash_read_cache_stats

View stats from ESX's Flash Read Cache using Grafana and InfluxDB
PowerShell
3
star
25

nics

Display information about Network Interface Cards (NICs)
Go
2
star
26

ellipsis

Go module to insert an ellipsis into the middle of a long string to shorten it
Go
2
star
27

WindowsPowerShell

My personal PowerShell profile
PowerShell
2
star
28

foxcolorbox

Firefox extension that allows you to change and customize browser Window colors
JavaScript
2
star
29

date_gap_finder

detect date gaps in a CSV file
Go
2
star
30

timeshift

Shift date/time from log files or from STDIN
Go
1
star
31

deidentify-gui

An easy to use GUI for the deidentify command-line program
C#
1
star
32

terraform_ec2_spot_instance

Use terraform to create an AWS EC2 spot instance
HCL
1
star
33

fpp

Find Program Path: iterate through the PATH environment variable to search for the given programs
Go
1
star
34

deidentify

Deidentify people's names along with pronoun substitution
Python
1
star
35

changecase

convert command line arguments to upper, lower or title case
Go
1
star
36

aws-sso-util-next

the benkehoe/aws-sso-util project but with GitHub Actions
Python
1
star
37

sns_publish

command line tool to send message or file to AWS SNS topic subscribers
Go
1
star
38

csv_word_merge

Merge CSV fields into a MS Word template
Python
1
star
39

homebrew-tap

Homebrew tap for jftuga command-line tools
Ruby
1
star
40

file-watcher

Monitors a given file location for create, change, rename and delete file events
C#
1
star