Interface: LocationApi
Places: a location's own page, and the places near a coordinate.
Methods
info()
ts
info(locationId): Promise<{
[key: string]: unknown;
category?: string;
facebook_places_id?: string;
lat?: number | null;
lng?: number | null;
location_address?: string;
location_city?: string;
location_id: string;
location_zip?: string;
media_count?: number | null;
name?: string;
phone?: string;
slug?: string;
website?: string;
}>;A place with its name, address and coordinates.
Parameters
| Parameter | Type |
|---|---|
locationId | string |
Returns
Promise<{ [key: string]: unknown; category?: string; facebook_places_id?: string; lat?: number | null; lng?: number | null; location_address?: string; location_city?: string; location_id: string; location_zip?: string; media_count?: number | null; name?: string; phone?: string; slug?: string; website?: string; }>
nearby()
ts
nearby(latitude, longitude): Promise<object[]>;The places near a latitude and longitude. Each one's pk works with feed.location.
Parameters
| Parameter | Type |
|---|---|
latitude | number |
longitude | number |
Returns
Promise<object[]>