Documentation
¶
Index ¶
Constants ¶
const CacheDateHeader = "X-Cache-Date"
CacheDateHeader advertises the generation timestamp of the loaded cache, so a client can notice that the server now serves an updated cache. It is set on every response, including errors.
const MaxBodySize = 32 * 1000 * 1000 // 32MB
Variables ¶
This section is empty.
Functions ¶
func FGeoDemoHandler ¶ added in v1.5.0
func FGeoDemoHandler(ctx *fasthttp.RequestCtx)
FGeoDemoHandler implements GET /fgeocode/demo, a self-contained browser page for the forward geocoding API. It is a static asset, served even when forward geocoding is disabled; the page itself surfaces the search error.
func RGeoDemoHandler ¶ added in v1.6.0
func RGeoDemoHandler(ctx *fasthttp.RequestCtx)
RGeoDemoHandler implements GET /rgeocode/demo, a self-contained browser page for the reverse geocoding points endpoint: click the map, see every cached point within the search radius, hover for the full address. It is a static asset, so it is served regardless of the cache contents.
Types ¶
This section is empty.