Building a Store Locator ASP.NET Application Using the Google Maps API - Part 1

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.

Comments

  • CEO

    Posted by James Barbone on 05/22/2014 10:42am

    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-

    Reply
  • Christian Louboutin from Italy and many Italian brand, was born in the traditional family business

    Posted by Vetriatszy on 03/15/2013 12:41pm

    this first 2012 SFJAZZ springtime Season live concert The first conjunction with regard to springs SFJAZZ thoroughly clean Season passed off last week at Herbst theater by way of an additional of that frequently used programs showcasing ECM producing performers. The first get might have been applied according to electric utility guitarist nicole Abercrombie leading a trio whoever other members getting whilst gary Versace your internet Hammond B-3 electric powered appendage or Adam Nussbaum along drums. from a break happens most likely was absorbed according to the Enrico Rava group, A not too accumulated quintet red simply because expert italian trumpeter Enrico Rava. Abercrombie takes a basic simply profoundly ornate system of improv, these all work from involving realistically comfortable sonorities. Initially, most of that smoothness given assistance receive washed out in both the sound machines as well as the Herbst microphones face-to-face with speakers ; and, since the specific advanced, The the ears realigned to the circumstances and can even far better increase the man's capacity in participating in familiarized licks to unexplored nether countries. Initially Abercrombie's subtleties within has to proud of Nussbaum's via-ambitious drumming; still Nussbaum little by little discovered that he was formerly difficult often the melody positively playing on top of that paid out entering a whole lot more varied volumes. on the other hand the biochemistry and biology ranging from Abercrombie and Versace ended up being spiritual taken from beginning to end. Versace recorded exceptional view in his conquer sets and standby and call time swell your pedal. as a result of six string and as a result body in a relaxed manner traded separate command, that just about every single recognized the way to render flow backup for the other. Abercrombie spoken just a little about how precisely they turned out inspired through the process of Sonny Rollins from a young age, and the wonderful comments above and beyond adequately simplified these high profile imaginative that their own elaborated beat creases definitely present themselves. living in Rava's group your current trumpeter futures beat start using trombonist Gianluca Petrella. the actual beats phase is constructed of Giovanni Guidi on guitar, Gabriele Evangelista located on bass sounds, then Fabrizio Sfersa across drums. Rava's trendiness isn't as lavish as Abercrombie's, yet unfortunately he has a clean and sound sound that is actually maximum expressive through the use of bare minimum gestures. as well as have made for a great flatter to positively Abercrombie's wilder projects ended up it not only to unpleasant character to Petrella's trombone. it absolutely was a hardship on Rava's significantly-would be-added artistic to handle its own with Petrella's since well-good deal-is ordinarily-practically never-sufficient enough forcefulness. He was a new like an orator what kind of person believed that the only way to make sure were to scream it; and additionally, As is the danger along with his musical instrument, persons combative aspect Homepage always altered why sonorities most advantageous define the most important trombone. the good news is the tempo location was formerly increased attentive to what Rava wanted related to his solitary employment to established the guy as best they would. there were always n' difficulties with the drum occupation staying besides a big deal; coupled with Guidi produced a large number of opportunities to display a quantity of cloying guitar designs your designed Rava using the perfect "landscaping" for the purpose of this man's solos. bear in mind, through Petrella choose to use into your "traditions your tribe, the foregoing quintet will not have the familial closeness in sustains tribal team

    Reply
  • His firm pumps take wickets colorblocking with multicolored zigzag and 4.7 heels. Supervised

    Posted by Vetriatszy on 03/14/2013 04:46am

    almost abercrombie younger deals needing chance small talk, the right laughters and the rare hammer out a deal? here is your audience. you have to review the other strategies which will be unplaned on the surface of the Community, so one can maintain an amiable ecological that has been receptive to every one: 4. Profanity not really censored, on the other hand please don't hesitate to would like who could looking through your posts before you use it. contain specialties such as helping an associate-in about-necessity in the BabyCenter industry. 7. phoning a community user a Troll is regarded as a personal strike at by just Bacenter, and such content articles to get lost. 8. pop over to this website would likely post course world wide web and a collegue's website just a post. when you have a website you has shared with the requestor, i suggest you you can keep them pass you a note if they're interested. you may possibly not pass these guys a note which involves your small business save for they explicitly locale they would like visitors to pass with regards to tie business. performing unwanted is a breach of these types of component to Babycenter's trading advice: you should be aware that if somebody sends you an freely given note, academic journal gain access to while well as talk on the phone surely commercially produced man or women business enterprise useful, immature violation top protocols. we'd appreciate it should you inform us make sure we can answer this challenge. split those thoughts on being economical and where to find the best offers, special deals, free gifts. for all who posses associated with involves in relation to ones own health or the fitness of your tot, you should always consult with a physician to other good doctor. you should study the privacy so regards to Use prior to when acording to this site. personal using the site would mean that set up staying chained among the relation to Use

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

Top White Papers and Webcasts

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

  • On-demand Event Event Date: December 18, 2014 The Internet of Things (IoT) incorporates physical devices into business processes using predictive analytics. While it relies heavily on existing Internet technologies, it differs by including physical devices, specialized protocols, physical analytics, and a unique partner network. To capture the real business value of IoT, the industry must move beyond customized projects to general patterns and platforms. Check out this webcast and join industry experts as …

Most Popular Programming Stories

More for Developers

RSS Feeds