Documentation ¶
Overview ¶
Package placesdb provides an abstraction to the database being used to store data about places.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoJson ¶
type GeoJson struct { Type string `bson:"type,omitempty"` Coordinates []float64 `bson:"coordinates"` }
GeoJson is the format used by the database to encode geographic data structures. More information at: http://geojson.org/
type Place ¶
type Place struct { ID bson.ObjectId `bson:"_id"` GoogleMapsPlaceID string `bson:"gmplaceid"` Location GeoJson `bson:"loc"` Accessibility []string `bson:"acc"` }
A Place object holds the information stored in the database.
type Places ¶
type Places struct {
// contains filtered or unexported fields
}
Places is a client library which exports methods to access/change information stored in the places database.
func Dial ¶
Dial connects to the database identified by the URL u, specifying a timeout for all DB operations. TODO(danielfireman): Use max RPS field.
Click to show internal directories.
Click to hide internal directories.