HTML+PHP code for navigation button
Open Source: [login to view URL]
The Mission:
Preparing a code that will direct the user to the nearest destination,
the nearest destination will be chosen automatically from pre-entered list of multiple locations.
the button will be set at mobile web site and will open the WAZE application.
Push the button-on the mobile website
(1) if the GPS is open -(2)
*if it is not open "Message" and retry after the JPS is opened
(2) find the user location=A
(3)calculate the distances between all preset locations (B1, B2, B3...) and A
(4) find C=the most short distance from A to B
*If there are 2 locations in the same distance, chose 1 of the 2 randomly(5)
(5) navigate to the application using the WAZE API
Once the button is pushed it opens a GPS and locates the user=location
Then it takes the list of destinations that were pre served in Latitude Longitude coordinates=destination
Finds out what is the distance between the persons location and each destination
And navigate the person to the nearest destination
We would like the calculation to be made on the server to prevent the coping of the code
Hi, I've gone through your requirements and understand you wish to create a HTML button to "Waze" to a location (such as a store location) nearest to the user. I have done very similar work before and you will find my solution is right for you. Please check my PMB for my proposal.
$100 USD in 2 days
5.0 (1 review)
3.4
3.4
7 freelancers are bidding on average $150 USD for this job