EarthView.grab#

EarthView.grab(lat: float, lon: float, zoom: int | None = None, type: str | None = None, scale: int | None = None, shape: tuple | None = None, roadnames: bool = False, placenames: bool = False) Image[source]#

Google map view as an image

Parameters:
  • lat (float) – latitude (degrees)

  • lon (float) – longitude (degrees)

  • type (str, optional) – map type, “roadmap”, “satellite” [default], “hybrid”, and “terrain”.

  • zoom (int, optional) – image zoom factor, defaults to None

  • scale (int, optional) – image scale factor: 1 [default] or 2

  • shape (array_like(2), optional) – image shape (width, height), defaults to None

  • roadnames (bool, optional) – show roadnames, defaults to False

  • placenames (bool, optional) – show place names, defaults to False

Returns:

Google map view

Return type:

Image

If parameters are not given the values provided to the constructor are taken as defaults.

Note

The returned image may have an alpha plane.