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 8355589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:54:34+00:00 2026-06-09T09:54:34+00:00

I am creating a store locator. What is the best way for the user

  • 0

I am creating a store locator. What is the best way for the user to inputs its location. I need some way to convert the user input into latitude and longitude.

How do I go from that the user types something in to converting it into latitude and longitude.

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-06-09T09:54:36+00:00Added an answer on June 9, 2026 at 9:54 am

    First, include the initialization code on page load:

    var myOptions = {
      zoom: 13,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    

    Trigger a function using the onclick attribute or submission of a form.

    Then in the function you trigger drop this in (note: this uses jQuery):

    var address = $('#name_of_input_box').val();
    

    Then geocode the address in the text box using the Google Geocoder API:

    var geocoder = new google.maps.Geocoder();
    geocoder.geocode( { 'address': address}, function (result, status) {
      cur_lng = result[0].geometry.location.lng();
      cur_lat = result[0].geometry.location.lat();
      var location = new google.maps.LatLng(cur_lat, cur_lng);
    });
    
    map.setCenter(location);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store the user who is creating a specific object in the
I am creating an application like youtube to store videos and I need some
Creating a google map with store locations within 50 miles of user entered address.
I'm creating an application that allows the user to store information about their classes.
I'm creating a class that will store data in a file and I need
I'm busy creating a mp3 player (for a music store). Everything works perfectly. Some
I am creating some tables where I want to store the time when a
Hi im working through the Creating a store locator tutorial on google that can
I am creating a console application that would store some sensitive strings in memory,
I am creating an application that will store passwords, which the user can retrieve

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.