Skip to content

Simple utility function to get a static image from the Google Maps API

Notifications You must be signed in to change notification settings

nbeuchat/geotools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Geotools

Simple utility functions to get a static image from the Google Maps API. This function returns a static image of the map that contains every points passed as input.

Usage

from geotools import getStaticImageFromBoundingBox
lats = [46.520134, 46.509465, 46.525679]
lngs = [6.565685, 6.633829, 6.642597]
gmap_api_key = '<YOUR GOOGLE MAPS API KEY HERE>'
map_image = getStaticImageFromBoundingBox(lats,lngs,size=2048,scale=1.0,zoom=12,key=gmap_api_key,maptype='roadmap',return_original=False)
map_image.show()

About

Simple utility function to get a static image from the Google Maps API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages