I hereby claim:
- I am gerifield on github.
- I am gerifield (https://keybase.io/gerifield) on keybase.
- I have a public key whose fingerprint is 4394 7057 50C4 3F3E B432 86AA E928 00CE 4DA6 BCC3
To claim this, I am signing this object:
| TS_AUTHKEY=ts-auth-yattayatta |
| // TwitterGo | |
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| "time" | |
| renurl "net/url" | |
| "github.com/ChimeraCoder/anaconda" | |
| ) |
| /** | |
| * Haversine distance formula. | |
| * | |
| * This calculates the distance between geo coordinates in km<br> | |
| * Algorithm: http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL<br> | |
| * Full calculation with Haversine formula is slow, so limit the whole distance to a rectangle, | |
| * then calculate the distance. | |
| * <br> | |
| * 1° of lat -> 111km (69 miles)<br> | |
| * 1° of lon -> cos(lat)*111<br> |
I hereby claim:
To claim this, I am signing this object: