I have developed fleet management using PHP. Here i plan to track vehicle in real-time and store the locations in my database.
My question is: Possible to track location via android mobile gps using Google API?
If it is possible please give me a way to create this.
Thanks in advance...!
PHP, which is a server-side language, can't query the device's location, instead the client application should get GPS location coordinates via Android's API and send it to the PHP server (for example via a POST request), then the server can handle the data and store it into the database.
Related
I don't have any idea of it how can i get attendance data directly to google sheet from ZKTeco attendance device. I searched many way to connect to php server but there is no clear information, how can I get access to the device attendance log. There also no HTTP request from the device also. So can any share there experience and how can I solve that issue ? I am using ZKTeco K40 and F18
You need to develop a program that calls the ZKTeco web API and have an available server that post your users' data.
After you have the data available in JSON, you can use the URL Fetch Service you can call in Apps Script within your Google Sheets to display the information in a spreadsheet in this way
var response = UrlFetchApp.fetch(url)
var content = response.getContentText()
var json = JSON.parse(content)
I want to get the punch in and out time from biometric device and store it in another attendence product database (mysql)
download the SDK from zkteco site. and go through the sdk sample programs and documents.
If you are already familiar with the zk program then, You have to read all the users from one device (using ReadAllUserID to buffer the data into device's memory and then GetAllUserInfo) then call SetUserInfo for every user id with another device.
If you are like to do it over http please check http://zkteco.tech/application/biometric-web-api.html for api details.
I'm working on a php and android base project. From php side we will be giving a route to follow to android side with google map link(to make it easy)
when the android user start driving the car we have to track whether he is following the route that we gave how to do it from php side this route is given by providing a link to google map marked with the route.
Now to track vehicle i'm confused how to start any help will be good
It's easy...
The android app have to send the GPS coordinates (with precision) with a http-request to the php-script periodically.
After that the PHP script checks the GPS coordinates + the precision and see if it's still on the marked road (this might be tricky)
Try to split up the tasks in as small pieces as possible (and use classes/functions!)
Good Luck!
Do you know about google direction api. It have an direction service which can help you show directions on map.And for tracking location status in php application your android app need to be send device co-ordinates to your php server/application contentiously.
For getting co-ordinates you can use device GPS and android Location Manager Class and Location Service,You can also try googles geo-location api.
But remember it is must that your android app send his co-ordinates to php application according that you can show pointer for device location.
We are currently halfway developing our thesis and there's a certain module we are having a hard time with. It's about a module that locates the position of a mobile phone using GPS.
We are developing a port management website and we need that module to keep track of people getting in and out of a particular area. we just need to integrate the mobile phone's GPS and have it tracked on the website.
We are new to this technology so we apologize if the question is quite vague. we appreciate your answers! thank you!
We are developing this kind of applications for long and what I feel from your question is that you are trying to simply track the mobile phone! If it's an iOS, you can make an app and install it to send the GPS data to an web service (preferably RESTful) and again fetch the data on the web site from that same service to track the phone in real time. Most of the companies use this approach to track anything (Car, Person etc.) that carries a cell phone.
Explaining your end goal or sharing a bit more of your target may yield better replies.
You actually don't need to create an app.....
You could create a webpage and get the location of a device by using HTML5 Geolocation and send the location to server/webservice. However, this means that you need open the page with a browser to get it working.
As for keeping track of people getting in and out of a particular area, you could get the GPS co-ordinates of the two corners of the area, and well, after that, do the math to calculate if its within the bounds or outside.
create one android/IOS app that constantly updates it's co-ordinates (lang-lat) to database present on the webserver .
you will need following things
1)mobile app Android/IOS , it will send mobiles location using GPS to webservice
2)webservice that receives position from mobile apps and updates position of mobile in database.
3)website that will fetch data from that database and perform operation eg.suppose if user in certain area
if (location==chicago city) ##check the lang-lats for location from database
{ do this }
I've been looking for some mechanism through which I can fetch android app's information such as app's ID in market, it's category, pricing, its icon and likewise from Google Play. I know there's a facility for App store for iOS, in which we can fetch app's information through URL below, which returns us back JSON of it:
http://itunes.apple.com/search?media=software&term=[query_word]
I need same for Android Market. Is there any URL for doing the same?
thanks in advance.
Here is Android Market API ported to PHP:
https://github.com/splitfeed/android-market-api-php