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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:27:51+00:00 2026-06-14T18:27:51+00:00

I was really struggling to make a title for this one. I hope it’s

  • 0

I was really struggling to make a title for this one. I hope it’s okay.

I have a website with several office-locations. I would like to send the user to google maps with the location of the selected office, and i would also like to use the location of the user.

This website is for mobiles only.

I’ve done some research, and I’ve found one possible method to do this, but i cant’ but wonder, there has to be an easier way to do this. Using a whole lot of code to see which language the users browser is, and then pass on “Current+Location” into the href in the correct language seems weird considering its Google.

I’m using the following href right now, where i will be adding a dynamic location for the offices.

<a href="http://maps.google.com/maps?f=d&source=s_d&saddr=CURRENTLOCATION&daddr=OFFICELOCATION&hl=en&geocode=Ff7kxwMdn62eAClBW-CUmzFtRjG-TdPYIg6PMw%3BCVVCpEO5eoJYFdnnxwMd5LKeACEJ5__6cDooDym1URz6mzFtRjFiK54FolriNQ&mra=pe&mrcr=0&dirflg=w&doflg=ptm&sll=63.408475,10.396459&sspn=0.102044,0.33783&ie=UTF8&z=19
">Directions</a>

Its the CURRENTLOCATION I’m not getting a hang on how to do.

  • 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-14T18:27:52+00:00Added an answer on June 14, 2026 at 6:27 pm

    Most smartphones have HTML 5 browsers. You can utilize the HTML 5 Geolocation spec to retrieve the users current position.

    http://www.w3schools.com/html/html5_geolocation.asp

    Then either send the lat/long directly to google maps, or do a reverse geocode look up using google maps rest api’s.

    https://developers.google.com/maps/documentation/geocoding/

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

Sidebar

Related Questions

I am really struggling with this one. I have Google'd this and tried most
I'm really struggling with this. I have a viewdetails.php page, addnew.php page and a
I have been struggling with this issue for about 10 hours straight. I really
I have been struggling with this issue for some days now and I really
Really struggling to figure this out. Just trying to take in data from php
Im really struggling to get my head round this. Im using c#. I want
I'm really struggling with require.js and jquery mobile. I have a loosely based file
OK i am really struggling with this! I know had to add an image
I'm really struggling with this now, been on it for ages and asked two
I'm really struggling to make facebook connection working for my system. What I want

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.