mapssearcher

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

mapssearcher

A wrapper for geocoding api (google maps) that search recursively by address name, neighborhood, and city.

Documentation

Index

Constants

View Source
const (
	FullPrecision = iota
	AddrPrecision
	NeigbPrecision
	CityPrecision
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MapData

type MapData struct {
	Name   string
	Compl  string
	Neighb string
	City   string
	State  string
	Unit   string
	Ibge   string
	Gia    string
	Cep    string
	Lat    float64
	Lng    float64
	Info   string
}

func GetMap

func GetMap(address, neigborhood, city, state, country string, precision int) (*MapData, error)

recuperar um cep e latlng (duas requisições) recuperar um mapa estático a partir da latitude e longitude

Jump to

Keyboard shortcuts

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