Skip to content

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 ​

ParameterType
locationIdstring

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 ​

ParameterType
latitudenumber
longitudenumber

Returns ​

Promise<object[]>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.