location

package module
v0.0.0-...-61711bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 6 Imported by: 0

README

Location

Location picks up location details from an interactive Google Map widget when creating/editing any applicable Resource in Qor Admin.

Documentation

https://doc.getqor.com/plugins/location.html

License

Released under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoogleAPIKey string

Functions

This section is empty.

Types

type Location

type Location struct {
	Address   string
	City      string
	Region    string
	Country   string
	Zip       string
	Latitude  float64
	Longitude float64
}

Location is a struct, you could embedded it into your model to get the Location feature for your model

func (*Location) ConfigureResource

func (*Location) ConfigureResource(res resource.Resourcer)

ConfigureResource configure qor locale for Admin

func (*Location) GetLocation

func (location *Location) GetLocation() *Location

GetLocation get location from your model

type LocationConfig

type LocationConfig struct {
	GoogleAPIKey string
}

func (LocationConfig) ConfigureQorMeta

func (LocationConfig) ConfigureQorMeta(meta resource.Metaor)

type Plugin

type Plugin struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL