Add credential-free sample mode with sample data, README, and doc reconciliation

This commit is contained in:
Ian Gulliver
2026-08-16 13:14:30 -07:00
parent 2b6e77c766
commit 8c9c1a6cd6
12 changed files with 166 additions and 75 deletions
+13
View File
@@ -0,0 +1,13 @@
package geocode
import "crypto/sha256"
type Fake struct{}
func (Fake) Lookup(address string) (Point, error) {
sum := sha256.Sum256([]byte(address))
return Point{
Lat: 37.5 + (float64(sum[0])/255-0.5)*0.12,
Lng: -122.45 + (float64(sum[1])/255-0.5)*0.12,
}, nil
}