Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressComponent ¶
AddressComponent represents a part of an address.
type Envelope ¶
Envelope is a GeoJSON like shape where coordinates contains [[left, top], [right, bottom]]
func NewEnvelope ¶
NewEnvelope creates an envelope.
type FacebookLocation ¶
type FacebookLocation InstagramLocation
FacebookLocation is an object representing the location information returned by the Facebook API
type Geometry ¶
type Geometry interface {
WKT() string
}
Geometry defines WKT, which provides a text representation of a vector.
type InstagramLocation ¶
InstagramLocation is an object representing the location information returned by the Instagram API
func (InstagramLocation) LatLng ¶
func (l InstagramLocation) LatLng() []float64
LatLng implements LatLnger
type LatLng ¶
LatLng implements LatLnger
func LatLngFromPoint ¶
LatLngFromPoint converts a Point to a LatLng.
type LatLnger ¶
type LatLnger interface {
LatLng() []float64
}
LatLnger defines a struct that can convert itself to cartesian coordinates.
type Place ¶
type Place struct {
PlaceID string `json:"place_id"`
Name string `json:"name"`
AddressComponents []AddressComponent `json:"address_components"`
AddressString string `json:"address_string"`
Location *Point `json:"location"`
BoundingBox *Envelope `json:"bounding_box"`
}
Place represents a physical location.
func LookupCoordinates ¶
LookupCoordinates lookups a coordinate and returns all its associated places.
func LookupName ¶
LookupName converts a string place name/address into
func PlaceDetails ¶
PlaceDetails returns the details of a place given its placeID.
type Point ¶
Point is a standard GeoJSON 2d Point with x,y coordinates
func NewPointFromLatLng ¶
NewPointFromLatLng creates a cartesian point that represents the given geographic coordinates.
func PointFromLatLng ¶
PointFromLatLng converts a latLng to a cartesian Point.
func (*Point) UnmarshalDB ¶
UnmarshalDB converts an stored point into a Point struct.
type TwitterLocation ¶
type TwitterLocation Point
TwitterLocation is an object representing the location information returned by the Twitter API (a GeoJSON Point)