@goteborgco/open-api-js-client
Version:
Official JavaScript client for the Göteborg & Co GraphQL API
34 lines (33 loc) • 1.05 kB
TypeScript
export declare class Location {
readonly address?: string;
readonly lat?: number;
readonly lng?: number;
readonly zoom?: number;
readonly place_id?: string;
readonly name?: string;
readonly street_number?: string;
readonly street_name?: string;
readonly state?: string;
readonly post_code?: string;
readonly country?: string;
readonly country_short?: string;
constructor(data: any);
/**
* Get coordinates as a lat/lng object
* @returns Object containing lat and lng or undefined if coordinates are not set
*/
getCoordinates(): {
lat: number;
lng: number;
} | undefined;
/**
* Get formatted address string
* @returns Formatted address string or undefined if no address components exist
*/
getFormattedAddress(): string | undefined;
/**
* Get short formatted address (just street and number)
* @returns Short address string or undefined if no street components exist
*/
getShortAddress(): string | undefined;
}