Jump to content

Lost in geolocation


phppup
Go to solution Solved by requinix,

Recommended Posts

After unsuccessful efforts at trying to obtain my GPS location from a self-written PHP script, I moved to a more local JavaScript code.

When opened on my Android phone with a Chrome browser, I received an error Y0ZkNV.

Is there a way to resolve this without changing my hosting to an HTTPS platform?

My goal is to be able to access my current location on my phone's browser.

Edited by phppup
Forgot item
Link to comment
Share on other sites

  • Solution
3 hours ago, phppup said:

When opened on my Android phone with a Chrome browser, I received an error Y0ZkNV.

That's not an error. That's a link. Specifically, a link to https://goo.gl/Y0ZkNV.

Pay more attention.

3 hours ago, phppup said:

Is there a way to resolve this without changing my hosting to an HTTPS platform?

Not if you want to do this from Javascript. But you should change to HTTPS regardless.

To do it from PHP, if you can accept that you will not get an accurate location, you look up the remote IP address in some geolocation database - MaxMind's, for instance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.