MapPLZ: Geo package for Go, Node, and Ruby
mapplz.com
mapplz.com
mapstore.Add_Lat_Lng(40, -70)
mapstore.Add_Lng_Lat(-70, 40)
mapstore.Add_LatLng( []float64{ 40, -70 } )
Few minor gripes for the Go code; don't use underscores and don't provide method signatures for all arrangements of values, all you need is mapstore.AddLatLng(x, y)I've asked the Go community about this before, and the suggestion was to create a Location object with latitude and longitude. This is the type of specialized API that I am trying to avoid. A developer should be able to chuck their existing data at MapPLZ and get back a geo point.
mapstore.AddLatLng(ll[0], ll[1])
Or:
mapstore.Add([]float64) / mapstore.AddLatLngPair([]float64) // or some variation of
A lat/lon struct would also be good, removes validation of the float slice etc.