upstream sync
This commit is contained in:
35
services/location/mapbox_lib/entities.go
Normal file
35
services/location/mapbox_lib/entities.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package mapbox
|
||||
|
||||
type (
|
||||
Feature struct {
|
||||
ID string `json:"id"`
|
||||
Type string `json:"type"`
|
||||
PlaceType []string `json:"place_type"`
|
||||
Relevance float64 `json:"relevance"`
|
||||
Properties Properties `json:"properties"`
|
||||
Text string `json:"text"`
|
||||
PlaceName string `json:"place_name"`
|
||||
Center []float64 `json:"center"`
|
||||
Geometry Geometry `json:"geometry"`
|
||||
Address string `json:"address"`
|
||||
Context []Context `json:"context"`
|
||||
BoundingBox []float64 `json:"bbox"`
|
||||
}
|
||||
|
||||
Properties struct {
|
||||
Accuracy string `json:"accuracy"`
|
||||
ShortCode string `json:"short_code"`
|
||||
}
|
||||
|
||||
Geometry struct {
|
||||
Type string `json:"type"`
|
||||
Coordinates []float64 `json:"coordinates"`
|
||||
}
|
||||
|
||||
Context struct {
|
||||
ID string `json:"id"`
|
||||
Text string `json:"text"`
|
||||
Wikidata string `json:"wikidata"`
|
||||
ShortCode string `json:"short_code"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user