Documentation ¶
Overview ¶
Package cliff provides an HTTP Client for Media Cloud CLIFF-CLAVIN geocoder.
It exposes only the minimum amount of functionalities, types, and fields useful for the default implementation of WhatsNew workers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for making requests to a Media Cloud CLIFF-CLAVIN geolocation server.
type Focus ¶
type Focus struct { Cities []Location `json:"cities"` Countries []Location `json:"countries"` States []Location `json:"states"` }
The Focus extracted entities.
func (*Focus) AllLocations ¶
AllLocations returns the union of Cities, Countries and States.
type ParsedText ¶
type ParsedText struct {
Results ParsedTextResults `json:"results"`
}
ParsedText is the result of parsing a text.
type ParsedTextResults ¶
type ParsedTextResults struct {
Places Places `json:"places"`
}
ParsedTextResults contains the data extracted from a text.
Click to show internal directories.
Click to hide internal directories.