Link to home
Start Free TrialLog in
Avatar of T1Tower
T1Tower

asked on

get gps location from smartphone

HELLO SUPER EXPERTS

Im building a PHP web app that need to know the GPS position of the device using the app.
How can I access that?
I bought a blackberry 9300 so we can run tests on it.

Thanks in advance
Avatar of Rob Knight
Rob Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi,

Perhaps this will help:

http://www.toniwestbrook.com/archives/126

Regards,



RobMobility
Hi,

Perhaps this will help:

http://www.toniwestbrook.com/archives/126

Regards,



RobMobility
Avatar of T1Tower
T1Tower

ASKER

Thank you RobMobility

I am editing the question since I need this to work on most common gps enabled smartphones and tablets, not just in blackberry.

The link you provided is very usefull, and Maybe the solution, let me see how the question develops.

THANK YOU!.
you might want to check google maps: http://code.google.com/apis/maps/documentation/javascript/basics.html#DetectingUserLocation

as far as I understand you need to get it on the web page, not as local application
Basically that just is the way it is...  In the mobile world, you don't really have much common ground for each devices...  So, either it should be that you find one web browser that works on majority of the devices you will want to support which allows you to get the current location as well, and tell users to use that one specifically so that you can do what you need...  Or, you need to build your own application that you can distribute on multiple devices...

If latter is your choice, RobMobility suggested what needs to be done, and you just need to find the alternatives for other devices...

If you have luxury of time, you 'could' test to see if Google Maps JS API works for you...  I did test this on iPhone some time ago, and I believe it works...  So, just test this technique with majority of your target devices and see if it does the job for you...
   http://code.google.com/apis/maps/documentation/javascript/basics.html#DetectingUserLocation

CyanBlue
Avatar of T1Tower

ASKER

Thank you Alexey and CyanBlue

Let me check google maps code.

Avatar of T1Tower

ASKER

BTW, someone know how to edit the question text ?
Time ago it was so easy!.
I don't know how to update the question of this topic...  Maybe it is less confusing if you just state it below...

CyanBlue
Avatar of T1Tower

ASKER

thanks

Still running tests
Avatar of T1Tower

ASKER

Still running tests, its a lot of material that I have to check.

A small code sample would have been good.
You might want to define/narrow it down so that we know what environment you are going and what language you are using...  There are so many ideas scattered around in this topic and we probably won't be able to give you any code snippets...  Please be more specific...

CyanBlue
Avatar of T1Tower

ASKER

Hello CyanBlue

I have a PHP script that is part of a larger system.
We need to know the location of a GPS enabled device ( smartphone / tablet )
Obviously the browser will ask the visitor for access to that information, and the user will approve or deny it.
Running PHP/MySQL

The link you provided has been helpful, but its a lot of material that I need to check.
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of T1Tower

ASKER

so far the tests worked, checking implementation.
Avatar of T1Tower

ASKER

in the code sample, it shows the position in the map.  I am trying to get the latitude and longitude so the system can use it.

Avatar of T1Tower

ASKER

GOT IT.
Avatar of T1Tower

ASKER

Thank you CyanBlue
Glad to hear that you've got it working...  ;)

CyanBlue
Avatar of T1Tower

ASKER

Thank you.

Thank you all for your valuable input.
No problem...  :)

CyanBlue