ts-foursquare
Version:
A simple library for Foursquare API
89 lines (75 loc) • 1.55 kB
TypeScript
import { NEntity } from './entity'
import { NVenue } from './venue'
export declare namespace NRecommendedPlaces {
interface IResponse {
warning?: IWarning
suggestedRadius?: number
headerLocation: string
headerFullLocation: string
headerLocationGranularity: string
totalResults: number
suggestedBounds: ISuggestedBounds
groups: IGroup[]
suggestedFilters?: ISuggestedFilters
geocode?: IGeocode
}
interface IGeocode {
what: string
where: string
center: ICenter
displayString: string
cc: string
geometry: IGeometry
slug: string
longId: string
}
interface ICenter {
lat: number
lng: number
}
interface IGeometry {
bounds: IBounds
}
interface IBounds {
ne?: IBoundsLocation
nw?: IBoundsLocation
se?: IBoundsLocation
sw?: IBoundsLocation
}
interface IGroup {
type: string
name: string
items: IGroupItem[]
}
interface IGroupItem {
reasons: NEntity.IEntityGroup<IReasonsItem>
venue: NVenue.IVenue
referralId?: string
}
interface IReasonsItem {
summary: string
type: string
reasonName: string
}
interface ISuggestedBounds {
ne?: IBoundsLocation
nw?: IBoundsLocation
se?: IBoundsLocation
sw?: IBoundsLocation
}
interface IBoundsLocation {
lat: number
lng: number
}
interface ISuggestedFilters {
header: string
filters: IFilter[]
}
interface IFilter {
name: string
key: string
}
interface IWarning {
text: string
}
}