'Node js google-maps-services-js set bounds when geocode

I want to use in node js google-maps-services-js to geocode an address. But i want to set bounds to filter results like documentation said. https://googlemaps.github.io/google-maps-services-js/interfaces/GeocodeRequest.html

const {Client} = require("@googlemaps/google-maps-services-js");

 const client = new Client({});
  await client.geocode({
          params: {
            address: address,
            bounds: ?????,
            key: "XXXX",
          },
          timeout: 1000, // milliseconds
        })
        .then((r) => {
          output = r.data.results[0];
        })
        .catch((e) => {
          console.log(e);
        });

How can i create LatLngBounds object? I can't found reference to the class to create the object.

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source