Get users current location using api. No ip or physical address is sent

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
sanjeevbhatnagar30
New php-forum User
New php-forum User
Posts: 1
Joined: Sun May 12, 2019 12:05 am

Sun May 12, 2019 12:12 am

Hi,

I am new to php. I am trying to create an api which gets the users current latitude, longitude and ip address and saves it in a database.

Can this be done. web pages it works but through api i was unable to do it.

Thanks in advance
Sanjeev

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 839
Joined: Mon Feb 22, 2016 5:52 pm

Sun May 12, 2019 5:26 am

The information is unreliable through IP addresses.

chorn
php-forum Fan User
php-forum Fan User
Posts: 601
Joined: Fri Apr 01, 2016 2:18 am

Sun May 12, 2019 10:20 pm

I am trying to create an api which gets the users current latitude
That makes no sense.

You either create an API and provide these data, or you are requesting an API to receive this data.

Post Reply