Versions in this module Expand all Collapse all v0 v0.1.0 Oct 28, 2026 Changes in this version + const DefaultBaseURL + const DefaultTimeout + const Version + func IsNotFound(err error) bool + type APIError struct + Code string + Detail string + Errors []FieldError + StatusCode int + Title string + Type string + func (e *APIError) Error() string + type BillingPeriod string + const Once + const PerDay + const PerHour + const PerMonth + const PerWeek + const PerYear + type Bootstrap struct + Cities []City + Countries []Country + Currencies map[string]string + type BuildingPrice struct + Name string + OperatorName string + OperatorSlug string + Price Money + Slug string + type Citation struct + Accessed string + Source string + Text string + Title string + URL string + type City struct + Center Coordinates + CountryCode string + Icon *Image + Name string + PropertyCount int + Slug string + Zones []Zone + type CityRates struct + Buildings []BuildingPrice + ByType []RateByType + City PlaceRef + CountryCode string + Currency string + DayPass *RateStat + EntryMax *Money + EntryMedian *Money + EntryMin *Money + Figures []RateFigure + InsufficientData bool + Max *Money + MeetingRoom *RateStat + Min *Money + OperatorCount int + P25 *Money + P75 *Money + PropertyCount int + SampleSize int + type Client struct + func NewClient(opts ...Option) *Client + func (c *Client) AllProperties(ctx context.Context, params *ListPropertiesParams) iter.Seq2[PropertySummary, error] + func (c *Client) Bootstrap(ctx context.Context, locale Locale) (*Response[Bootstrap], error) + func (c *Client) Facets(ctx context.Context, params *ListPropertiesParams) (*Response[Facets], error) + func (c *Client) GetOperator(ctx context.Context, slug string, locale Locale) (*Response[Operator], error) + func (c *Client) GetPlace(ctx context.Context, kind PlaceKind, slug string, locale Locale) (*Response[Place], error) + func (c *Client) GetProperty(ctx context.Context, slug string, locale Locale) (*Response[Property], error) + func (c *Client) Health(ctx context.Context) (*Response[HealthStatus], error) + func (c *Client) ListProperties(ctx context.Context, params *ListPropertiesParams) (*Response[[]PropertySummary], error) + func (c *Client) MarketRates(ctx context.Context, params *MarketRatesParams) (*Response[MarketRates], error) + func (c *Client) Suggest(ctx context.Context, q string, limit int, locale Locale) (*Response[[]Suggestion], error) + type Coordinates struct + Lat float64 + Lng float64 + type Country struct + Code string + Name string + PropertyCount int + Slug string + type FAQ struct + Answer string + Question string + type Facet struct + Key string + Label string + Values []FacetValue + type FacetValue struct + Count int + Label string + Value string + type Facets struct + CapacityRange ... + Facets []Facet + PriceRange ... + type FieldError struct + Message string + Path string + type HealthStatus struct + SHA string + Status string + type Image struct + Alt string + Height int + ThumbHash string + URL string + Width int + type ListPropertiesParams struct + Address string + Amenities []string + City string + Country string + Currency string + Locale Locale + MaxPrice float64 + MinCapacity int + MinPrice float64 + Near *Coordinates + Operator string + Page int + PageSize int + PricingOptionType PricingOptionType + RadiusMeters int + Seed int + SortBy SortBy + Zone string + type Locale string + const English + const German + const Spanish + type MarketPosition struct + Median Money + SampleSize int + Verdict Verdict + type MarketRates struct + AsOf string + Attribution string + Cities []CityRates + Copyright string + License string + LicenseURL string + Scope string + TotalPricePoints int + TotalProperties int + Unpublished []UnpublishedCity + type MarketRatesParams struct + City string + Country string + Currency string + Locale Locale + type Meta struct + CatalogueNotice string + Citation *Citation + ContractVersion string + Pagination *Pagination + Seed *int + Truncated bool + type Money struct + Amount float64 + Currency string + func (m Money) String() string + type Operator struct + AsOf string + Cities []PlaceRef + Description string + FAQs []FAQ + Logo *Image + Name string + PricePosition ... + PropertyCount int + Slug string + Tagline string + type OperatorRef struct + Logo *Image + Name string + Slug string + type Option func(*Client) + func WithBaseURL(base string) Option + func WithHTTPClient(h *http.Client) Option + func WithLocale(l Locale) Option + func WithUserAgent(ua string) Option + type Pagination struct + Page int + PageCount int + PageSize int + Total int + type Place struct + AsOf string + Center *Coordinates + FAQs []FAQ + Intro string + Kind PlaceKind + Name string + Parent *PlaceRef + PriceRange ... + PropertyCount int + ShortDescription string + Slug string + type PlaceKind string + const KindCity + const KindCountry + const KindZone + type PlaceRef struct + Name string + Slug string + type PricingOption struct + BillingPeriod BillingPeriod + MaxCapacity int + MinCapacity int + OptionType PricingOptionType + Price *Money + PriceOnRequest bool + Title string + type PricingOptionType string + const DayPass + const EventSpace + const ExclusiveArea + const FixedDesk + const FlexDesk + const MeetingRoom + const Membership + const PrivateOffice + const VirtualOffice + type Property struct + Address string + Amenities []string + Capacity int + City *PlaceRef + Coordinates *Coordinates + CountryCode string + Description string + Featured bool + FromBillingPeriod BillingPeriod + FromPrice *Money + Images []Image + MarketPosition *MarketPosition + Operator *OperatorRef + PricingOptions []PricingOption + Slug string + Title string + UpdatedAt string + WebURL string + Zone *PlaceRef + type PropertySummary struct + Amenities []string + Capacity int + City *PlaceRef + Coordinates *Coordinates + CountryCode string + DistanceMeters *float64 + Excerpt string + Featured bool + FromBillingPeriod BillingPeriod + FromPrice *Money + Images []Image + MarketPosition *MarketPosition + Operator *OperatorRef + Slug string + Title string + UpdatedAt string + Zone *PlaceRef + type RateByType struct + Max Money + Median Money + Min Money + OptionType PricingOptionType + SampleSize int + type RateFigure struct + InsufficientData bool + Median Money + OperatorCount int + OptionType PricingOptionType + P25 *Money + P75 *Money + PropertyCount int + SampleSize int + type RateStat struct + InsufficientData bool + Median Money + OperatorCount int + PropertyCount int + SampleSize int + type Response struct + Data T + Meta Meta + type SortBy string + const SortByDistance + const SortNewest + const SortOldest + const SortPriceAsc + const SortRandom + type Suggestion struct + Center *Coordinates + Kind string + Label string + PropertyCount int + Slug string + Sublabel string + type UnpublishedCity struct + City PlaceRef + InsufficientData bool + type Verdict string + const Above + const Around + const Below + type Zone struct + Name string + PropertyCount int + Slug string