Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7696803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:51:54+00:00 2026-05-31T21:51:54+00:00

Are there any examples of Store Locators using Google API v3 without using a

  • 0

Are there any examples of Store Locators using Google API v3 without using a database? All the tutorials I can find through Google are all relative to v2 (which Google says is deprecated), php (we’re using python), and mySQL (we’re using SQLite).

I’ve never made a store locator before but I assumed Google would have had it set up so that you could list addresses and Google spits out the snippet for you to paste on your site. Too naive, I know.

Well I’ve got the map working but I can’t figure out how to add locations, display them, or allow users to input a zip and find nearby locations. Right now we only have three locations so I was hoping to find a solution that forgoes the database part and lets me specify these lat/longs directly in the Google js. I don’t mind it loading all three locations on pageload.

So if you know of a way to specify the locations directly in the Google v3 snippet, please do tell. If you know how to display the sidebar with those store details and a place to input a zip, please share that too and I’d be most appreciative.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:51:55+00:00Added an answer on May 31, 2026 at 9:51 pm

    Something like the following should work in v3 to center the map on a user lat/lng and draw a marker at the store position:

                      var node_marker_image = new google.maps.MarkerImage('PATH_TO_YOUR_CUSTOM_MARKER_IMAGE',
                                new google.maps.Size(15, 26),
                                new google.maps.Point(0, 0),
                                new google.maps.Point(8, 26)
                      ); // adjust point parameters as needed
    
                      var shadow = new google.maps.MarkerImage('PATH_TO_YOUR_CUSTOM_MARKER_SHADOW',
                                new google.maps.Size(22, 26),
                                new google.maps.Point(0, 0),
                                new google.maps.Point(2, 26)
                      ); // adjust as needed
    
                      var user_position = new google.maps.LatLng(USERLAT, USERLNG);
                      var myOptions = {
                            zoom: 8,
                            center: user_position,
                            mapTypeId: google.maps.MapTypeId.ROADMAP
                      };
    
                      var map = new google.maps.Map(document.getElementById('mapCanvas'), myOptions);
    
                      var store_marker = new google.maps.Marker({
                                        position: new google.maps.LatLng(YOURLAT, YOURLNG),
                                        map: map,
                                        icon: node_marker_image, 
                                        shadow: shadow
                      });
    

    If you don’t want to use a DB, you could use a JSON string to represent your store locations, and parse that into some sort of location object. As for the “nearest” store feature — over to you to figure out how you want to correlate zipcodes. Zipcodes can be quite complex and often don’t follow what you might consider to be sensible geographical boundaries. US census data can be a good source for zip info. Sounds like your requirements are fairly simple, so you could just assign a central geo position to each zip you might need to worry about in a lookup table (or, again, a JSON string). You could then use the google.maps.geometry.spherical.computeDistanceBetween() method to compute the distance between the center of the zipcode of interest and your store locations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any tutorials or examples on how to play WAV files on Mac
Is there any way to compute length of va_list ? All examples I saw
Are there any examples of successful commercial apps written with PhoneGap? If I were
Does the asp.net ReportViewer control work with LinqDataSource? If so are there any examples
Are there any good examples (websites or books) around of how to build a
Are there any good examples out there of how the following web service would
Are there any good examples of mvc routing wherein every 404 page not found
What CAPTCHA system is compatible with ASP.NET MVC? Are there any good examples out
Is there any website where people share and discuss good examples of object-oriented design?
I need to generate UUID to eventually store in a database. Can I generate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.