Using Google Static Maps API

Google Maps

This project explores the basics of using Google's Static Map software to display your own maps.

Have you seen an application or software that uses another company’s service? You might have wondered how the developers managed to get their hands on such a service. Sometimes, however, it’s not nearly as complicated as you may think; it might be a case of the developer using the company’s API.

API stands for ‘application programming interface’, and it allows developers to use the services a company has created in a safe and restricted manner. Not all services have an API you can use, but you’ll be surprised at what you can do with the free APIs available to you. In this article, we’ll make a piece of software that talks with Google Maps and creates a static map of a set location.

First of all, we’re going to need something to put our map in. For the sakes of this article, I’m using Visual Studio Community 2015, which is free to download and contains everything you need. If you have your own coding language which you can follow along with, feel free to use it!

To start, we’re going to make a Windows Form. This allows us to make fields and buttons easily, as well as being able to embed the map we want within its browser functionality. Go ahead and make a new Windows Form by clicking New->Project, then Visual C#, then clicking Windows. On the right, choose Windows Form Application.

Window Form

You’ll see a blank UI window appear in the project. That’s the window we’re going to use to build our map program on. This is what makes Windows Forms very useful, as you can create a quick program that doesn’t require much coding to create its UI.


Become a subscriber and get access to the rest of this article. Plus all our magazine articles.

Stories also include numerous links to help parents, kids, and teachers learn more. Get access today at just $15 per year!

Subscribe Today!

Also In The June 2017 Issue

Building and creating your tools with the Minecraft toolbox helps you survive the game.

Sensors give robots the senses humans have.

30+ ideas for all age holiday gifts, from books to apps to board games to VR and more.

There might be a reason that too-real robot and video game character creeps you out.

This programming language uses colors instead of text and punctuation to add and perform other tasks.

Knowing how passwords are cracked can help you create better passwords.

There are a number of strategies teachers (plus parents and students) can take to learn programming.

This project uses conductive thread to create a glove to activates your phone.

Software programming does neat things with language, in this case, mixing capital letters.

This Scratch game has lots of ways you can customize the game play. No cats were harmed in the making of this article either.

Links from the bottom of all the October 2017 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about computer science, software programming, and technology for October 2017.