UNPKG

distance-matrix-2

Version:

Node.js wrapper for Goople Distance Matrix API.

7 lines (6 loc) 531 B
import { Coord, DistanceMatrixOptions, DistanceMatrixResponse } from "./types"; export declare const baseUrl = "https://maps.googleapis.com/maps/api/distancematrix/json"; export declare const formatLocations: (locations: (string | Coord)[]) => string; export declare const throwLocationsErrror: (locations: (string | Coord)[], name: string) => void; export declare const stringifyQueryParams: (data: DistanceMatrixOptions, key: string) => string; export declare const requestJson: (url: string) => Promise<DistanceMatrixResponse>;