What I want to do:
I want to create a little program in Java (beginner in Java here) in which I specify a GPS location and zoom level and download the map image that Google Maps is showing. Associated with this, I need to have a scale associated with the image (the size in Km of the x and y dimensions of the rectangular image).
Google maps java free download - Maps - Navigation & Transit, Google Maps with GPS Tracker, Google Earth, and many more programs.
What I know:
Download Latest version of Google Earth for Windows 10 (64/32 bit). Google Earth is a virtual globe map and geographical information program that was originally called EarthViewer 3D created by Keyhole Inc a Central Intelligence Agency CIA funded company acquired by Google in 2004 see In Q Tel It maps the Earth by the superimposition of images obtained from satellite imagery aerial photography. Downloading a map image using Google Map using Java. In which I specify a GPS location and zoom level and download the map image that Google Maps is showing. Download Game Java Layar Sentuh 240X400| Game hp layar sentuh / touchscreen (java & symbian, Download file. The adventures of tag: game hp java layar sentuh, game hp symbian layar sentuh, game layar sentuh. This page is your source to download or update your existing Java Runtime Environment (JRE, Java Runtime), also known as the Java plug-in (plugin), Java Virtual Machine (JVM, VM, and Java VM).
I know how to get the right image displayed in the browser, specifying GPS location and zoom level directly in the URL (example: https://maps.google.com/maps?f=q&hl=de&geocode=&q=48.167432,+10.533072&z=7). There should be some kind of library like urllib in Python with which I will call this URL.
How to then download this image, and how to know the area pictured in it?I actually found a formula to relate the amount of meters (or whatever unit) 'contained' in a pixel (this function depends on latitude and zoom level of the map). In this case, how to know about the pixels used by the map?
Thank you for any suggestion and/or pointer!
1 Answer
You want to use static maps API.
Your particular map would be at URL
as just an image. Set sensor=true if you're using a GPS sensor to find the location. Otherwise set it to false.
To read the image from this url:
How to then download this image, and how to know the area pictured in it? I actually found a formula to relate the amount of meters (or whatever unit) 'contained' in a pixel (this function depends on latitude and zoom level of the map). In this case, how to know about the pixels used by the map?
You pass pixels and zoom level into the image, so that information is all given with this solution, so your scale should be very easy to calculate.