Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressLine ¶
type AddressLine struct {
PlaceID interface{} `json:"place_id"`
IsAddress bool `json:"isaddress"`
}
type CountryInfo ¶
type DumpEntry ¶
type DumpEntry struct {
Type string `json:"type"`
Content json.RawMessage `json:"content"`
}
type RawPlace ¶
type RawPlace struct {
PlaceID interface{} `json:"place_id"`
OsmType string `json:"object_type"`
OsmID int64 `json:"object_id"`
OsmKey string `json:"osm_key"`
OsmValue string `json:"osm_value"`
Names map[string]string `json:"name"`
Importance float64 `json:"importance"`
CountryCode string `json:"country_code"`
RankAddress *int `json:"rank_address"`
AddressType string `json:"address_type"`
Categories []string `json:"categories"`
Extra map[string]interface{} `json:"extra"`
Address map[string]interface{} `json:"address"`
Postcode string `json:"postcode"`
HouseNumber string `json:"housenumber"`
Street string `json:"street"`
City string `json:"city"`
District string `json:"district"`
State string `json:"state"`
Country string `json:"country"`
Centroid []float64 `json:"centroid"`
Bbox []float64 `json:"bbox"`
AddressLines []AddressLine `json:"addresslines"`
}
type Reader ¶
type Reader struct {
Header *Header
CountryNames map[string]model.NameMap
AddressCache map[string]map[string]string // simplified for now
Languages map[string]struct{}
CountryFilter map[string]struct{}
// contains filtered or unexported fields
}
func (*Reader) ReadAllParallel ¶
func (*Reader) ReadHeader ¶
Click to show internal directories.
Click to hide internal directories.