UNPKG

@vis.gl/react-google-maps

Version:

React components and hooks for the Google Maps JavaScript API

18 lines (17 loc) 673 B
import { StaticMapsLocation } from './types'; /** * Formats a location into a string representation suitable for Google Static Maps API. * * @param location - The location to format, can be either a string or an object with lat/lng properties * @returns A string representation of the location in the format "lat,lng" or the original string * * @example * // Returns "40.714728,-73.998672" * formatLocation({ lat: 40.714728, lng: -73.998672 }) * * @example * // Returns "New York, NY" * formatLocation("New York, NY") */ export declare function formatLocation(location: StaticMapsLocation): string; export declare function formatParam(string: string): string;