Develop a website that tracks phones using GPS - php

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 }

Related

how to track vehicle from php side

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.

Real Time Database on Android with Google Maps

we have a android project that needs the following objectives:
*we also have a web application for this app that needs to communicate with the same database as the android application
what I have done so far:
a view of a map with a pinpoint on my current Location
mysql db containing information (including latitude and longtitude position)
registration and login
Real Time Database Objectives:
state that people are online or offline(updating a database).
Google Map Objectives:
When I press a button, the map will show other users who are online within a given radius so basically I need to view online people who are near me
Send a message to them [2 ways]
2.1 I send them a message by clicking their icon
2.2 I send everyone[online people within the radius] the message
Questions:
I am currently using php mysql for login/register. Can I use this for a real time database or is there any other way?
is Firebase somehow similar to a hosting site?
if there are other needed information needed, pls inform me, I may not have included information that could help with my questions :)
ill update my question too if I have more questions.
thank you.
I think for your requirements its is more appropriate to use Firebase as it fulfills all your expectations and provides additional features.

Is it possible to advertise on local network via Adsense?

Recently I have developed an app on php, which will be running in my workplace local network. The traffic on the Sever(hosted externally) is very large. But the problem is that, since it has to run within local network, the same public IP will be allocated to every user within the network.
Map of the network
Server (Public IP eg. 11.11.11.11) -> Local network users (eg 198.162.1.1).
My application server is has been hosted externally.
Will I be able to run advertisements(adsense) and get paid through it. As the users will always have same public IP.
Note: I am much more concerned about adsense(by google).
I would also like to know the best way to earn through a social networking site other then addsense.
I request you to answer descriptively.Feel free to edit this question for better understanding.Thanks for reading.
Yes, because in your case even google.com will be browsed from local network and so it will also have traffic. Now just don't ask your friends to click on adds in your website.
First, here’s a very brief outline of exactly how AdSense works:
You sign up for AdSense with Google, and, if you are accepted, Google will start placing ads on your web pages automatically.
If someone on your site sees an ad and clicks on it they leave your site.
Google charges the advertiser for the click and shares this money with you. This type of advertising is called Pay Per Click advertising, usually abbreviated to PPC.
The Ads you get on your web pages are usually relevant to your visitor.
With a planned $90 million settlement, Google could soon dispense with a class-action lawsuit involving so-called click fraud.
But while that may be good for Google, it doesn't mean the problem of bogus clicks on online ads--which advertisers have to pay for--is going to disappear anytime soon. A lack of clear standards for determining what is a fraudulent click, or some sort of third-party clearinghouse to monitor the situation, means some advertisers believe they can't do much more than head to the courts when they think there's a problem.
Certainly, Google and Yahoo, which run the two largest pay-per-click advertising networks, say they're addressing the problem. But some click auditing companies still claim that between 20 percent and 35 percent of clicks on Net advertisements are fraudulent.
Unfortunately, there's no easy answer. Some experts say the solution is to have an independent auditor that would use data from the search engines and advertisers to determine in a neutral environment whether clicks are fraudulent.
I repeat, in your case users will even browse google.com or other site, which enables them to know the network type that you have. But make don't click on your own adds which violates their TOS. All the best.
i think it is not possible to run in local network because i should hit the Google adsense server so that it increases your earnings. you can let your Google adsense Script run it doesn't consume more bandwidth.
I'm going to say no.
For a better, more descriptive answer, ask Adsense directly
Possible related questions
Intranet Ads? Same IP, multiple hits
How google adsense detects that the clicks are made from same computer ? Do they check ip addresses ?
Is it legal to add google adsense acount to Local LAN website?
Edit for 1st comment
would you mind giving some conclusion explaining briefly. Can you also give some good alternative to google adsense for a social networking site. I appreciate for help
As all clickouts will be on the same IP "As the users will always have same public IP.", Google will think this is "clickfraud", and you're falsifying authentic clickouts - which you're not, but this is what it will seem like, on Google's end.
Google will first flag your account, and then (most likely, after investigating) close your Adsense account.
Alternatives to Adsense would be;
Infolinks
Kontera
Amazon Associates
BuySellAds
Text Link Ads
Clicksor
Apparently a good choice
Adversal
I've not used any of these personally, and I fetched this list from stream-seo.com

Integrate Google Drive with my CRM to allow creation and collaboration on files

Here is the deal - our internal CRM is used for managing the huge amount of estimate requests we receive each day. The software is built with php / codeigniter / mySql. It allows our sales team to store a lot of information regarding the lead and when the time is right, generate estimates and even contracts.
Let’s focus on the contract.
When the user hits the "Create contract" button, the software gathers all the information like Client name, address, social security number and stuff like that. Using this information and a couple of On/off options it generates the contract dynamically. Of course it always needs some editing, that’s where my problem starts.
The user has to edit the document in a TinyMCE box - sort of a WYSIWYG editor. This editor sucks for complex editing.
We use Google apps for business, so here is what I would like to do: When the user hits the Create Contract button, the software has to gather the dynamic information and create a file on Google Drive with our contract layout and information. Then the user is free to edit the file using the Google Drive interface which is great.
Does anybody know a approach for this?
Best regards and sorry for the bad English.

Email notifications for when events align with location. How?

I am looking at building a webapp in php/mysql that people can log into, and sign up to receive email notifications when a certain event is at their chosen location, e.g a jack johnson concert in new zealand, receivng a notification when he comes to that location to perform. I am guessing that there is some online concert database that apps like shazam use that i could intergrate with.
Any help on building this sort of app would be appreciated, most importantly the notification system and how that integrates with another concert database and the users details .
I have a basic knowledge of php/mysql, I'm guessing I should use a framewok for this, if anyone knows one useful for this task that would be appreciated too.
Thankyou!
Always check ProgrammableWeb when looking fr APIs. I found the Gruvr API:
Gruvr offers tons of geocoded concert data, with about 170K upcoming
shows for 45K bands currently listed. You can ask for upcoming
concerts by location or by band. The results can be returned as
geoRSS, KML, or dynamic map links.
For triggering events, checkout momentapp, which lets you schedule delayed HTTP requests.
Maybe you could start from there. What you could do is when somebody signs up with their location, check Gruvr if there are any upcoming concerts in their area, then schedule a request with momentapp which will trigger your email notification script at a specified time before the event to alert the user.
You can also use CRON as an alternative to using a 3rd-party service like momentapp.
I think your question can be broken down into more questions.

Categories