Documentation ¶
Index ¶
- Constants
- Variables
- func Dumper(infos ...interface{})
- func HttpGet(url string, hdrs map[string]string) (string, int, error)
- func HttpInit()
- func HttpPost(url, body string, hdrs map[string]string) (string, int, error)
- type AppJwtConfig
- type Coordinates
- type Geometry
- type GoogleApiResponse
- type GoogleMapGeoCode
- type Location
- type Results
Constants ¶
View Source
const ( GoogleApiUri = "https://maps.googleapis.com/maps/api/geocode/json?key={key}&address=" GoogleApiKey = "" MozillaLinuxUA = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36" )
View Source
const TokenAuthSecret = "/v1/api/S3cr3T"
Variables ¶
View Source
var ShowMeLog = true
Functions ¶
Types ¶
type AppJwtConfig ¶
var AppJwtToken *AppJwtConfig
func NewAppJwtConfig ¶
func NewAppJwtConfig() *AppJwtConfig
type Coordinates ¶
type GoogleApiResponse ¶
type GoogleMapGeoCode ¶
func NewGoogleMapGeoCode ¶
func NewGoogleMapGeoCode(key string) *GoogleMapGeoCode
NewGoogleMapGeoCode geo-code
func (*GoogleMapGeoCode) GetCoordinates ¶
GetCoordinates get the geo code info as per address
type Location ¶
type Location struct {
Location Coordinates `json:"location"`
}
Click to show internal directories.
Click to hide internal directories.