>  Docs Center  >  Libraries  >  Coyote  >  CGGOOGLE_METERSPERPIXEL
Libraries

CGGOOGLE_METERSPERPIXEL

CGGOOGLE_METERSPERPIXEL
  This funtion returns the number of meters per pixel for a particular zoom level
  in images returned using Google's Static Image API.

Categories


    Utility
   

Params


    zoomlevel: in, optional, type=integer, default=12
      The Google zoom level used in retrieving Google Maps using the static image API.
      Documentation: https://developers.google.com/maps/documentation/staticmaps/.
     

Examples


    For example, to find the pixels per meter for a zoom level of 12::
      IDL> Print, cgGoogle_MetersPerPixel(12)
            38.1757

Author


    FANNING SOFTWARE CONSULTING::
      David W. Fanning
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History


    Written, 20 June 2012.

Copyright


    Copyright (c) 2012, Fanning Software Consulting, Inc.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us