Virtual Developer Workshop: Containerized Development with Docker

Over the past couple of months I've been working on a couple of projects that have used the free Google Maps API to add interactive maps and geocoding capabilities to ASP.NET websites. In a nutshell, the Google Maps API allow you to display maps on your website, to add markers onto the map, and to compute the latitude and longitude of an address, among many other tasks.

With some Google Maps API experience under my belt, I decided it would be fun to implement a store locator feature and share it here on 4Guys. A store locator lets a visitor enter an address or postal code and then shows the nearby stores. Typically, store locators display the nearby stores on both a map and in a grid, along with the distance between the entered address and each store within the area. To see a store locator in action, check out the Wells Fargo store locator.

This article is the first in a multi-part ASP.NET tutorial that walks through how to add a store locator feature to your ASP.NET application. In this inaugural article, we'll build the database table to hold the store information. Next, we'll explore how to use the Google Maps API's geocoding feature to allow for flexible address entry and how to translate an address into latitude and longitude pairs. Armed with the latitude and longitude coordinates, we'll see how to retrieve nearby locations as well as how to compute the distance between the address entered by the visitor and the each nearby store. (A future installment will examine how to display a map showing the nearby stores.) Read the entire article, Building a Store Locator ASP.NET Application Using Google Maps API here.

About the Author

Scott Mitchell

Scott Mitchell is the Editor, founder, and primary contributor to 4GuysFromRolla.com. In addition to founding 4GuysFromRolla.com, Scott also created ASPFAQs.com and ASPMessageboard.com. He works as a freelance writer, trainer, and consultant and resides in California.


  • CEO

    Posted by James Barbone on 05/22/2014 05:42pm

    Attn: Re: Google ZipCode Map API 2014 Please indicate your fixed fee & time required to install a stand alone Google Store Locator Map on my website that is similar to this site, http://www.curves.com/locations Enter Zipcode 19802 See results. Must install on this website blank page, with an Excel CSV file that we can manually add new store locations as we get them. https://sites.google.com/a/mediablitzers.net/ovenus1 Click on Find Us tab - must remove this broken map. Install new map. Create Map on local server to deterine if it can function flawlessly ? Please advise us of your possible interest or tell us, who is capable. Sincerely, James+ Thanks -email address removed by admin-

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date