Merdok Posted January 4, 2010 Share Posted January 4, 2010 Hi Guys, I'm in the process of building a mobile web app for phones with wireless and gps, I need the app to be able to identify its location and display information dependent on that location. I asked in the PHP forums at first but was told to try the javascript one. Eg: One of the apps I've been asked to develop is for a building company. They want their inspectors to be able to visit each building site and open up their control panel and immediately have the information available for that particular location. It also has to offer alternatives, eg if the building site is close to another building site they should be able to select the correct on. Is this possible to do as a mobile webapp? If so could someone please point me in the right direction. Thank you Alex. Quote Link to comment https://forums.phpfreaks.com/topic/187165-mobile-web-app-to-be-location-aware/ Share on other sites More sharing options...
corbin Posted January 5, 2010 Share Posted January 5, 2010 To do that, you would need access to the location handling stuff in the phone. In other words, the location stuff is most likely handled on an OS level. So, an app (think about an iPhone app for example) might be able to access the API to retrieve location information, but as far as accessing location information on a web page, JS would have to be able to access an API in the browser which would then have to access something in the OS. So, possible? Maybe. Would depend on the phone. I would guess no though. Quote Link to comment https://forums.phpfreaks.com/topic/187165-mobile-web-app-to-be-location-aware/#findComment-988480 Share on other sites More sharing options...
Merdok Posted January 5, 2010 Author Share Posted January 5, 2010 Hmm... ok, might just have to have 'select location' as an option thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/187165-mobile-web-app-to-be-location-aware/#findComment-988482 Share on other sites More sharing options...
corbin Posted January 5, 2010 Share Posted January 5, 2010 It's worthing looking into it since that would be a cool feature for phones to have, but I don't think any phones' browsers have a JS API for location. You could probably google for the docsof a couple phones though and see. Quote Link to comment https://forums.phpfreaks.com/topic/187165-mobile-web-app-to-be-location-aware/#findComment-988500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.