Create the programming code to optimize map points using Mapquest, Google Maps, or some other map route optimization technique.
Using php or javascript, we will serve up an array map points consisting of latitudes and longitudes. The goal is to optimize the routing by re-ordering all intermediate stops between the origin (1st record in array) and destination (last record in array) coordinates in order to achieve maximum route efficiency by fastest time. The route optimization functionality needs to be able to handle and optimize up to 25 points in the array.
Here is the sample array to optimize, formatted in javascript objects. Notice how the start and end points are the same point, this is the start and end of the optimized trip. Format this array however you see fit (php or javascript) in order to accomplish the goal, but the fundamental idea of using these lat/lng points can't change:
{lat:29.906260, lng:-95.485970},
{lat:29.905463, lng:-95.485099},
{lat:30.016609, lng:-95.444656},
{lat:29.804140, lng:-95.405251},
{lat:29.724100, lng:-95.387779},
{lat:30.019939, lng:-95.444656},
{lat:30.010851, lng:-95.459450},
{lat:30.017099, lng:-95.447311},
{lat:29.810415, lng:-95.429841},
{lat:29.723261, lng:-95.388443},
{lat:29.688939, lng:-95.529468},
{lat:29.713043, lng:-95.494705},
{lat:29.719330, lng:-95.419310},
{lat:29.929720, lng:-95.583992},
{lat:30.024860, lng:-95.395607},
{lat:29.819388, lng:-95.456742},
{lat:29.995811, lng:-95.574387},
{lat:29.723261, lng:-95.388443},
{lat:29.695420, lng:-95.661580},
{lat:30.019939, lng:-95.444656},
{lat:29.841320, lng:-95.469521},
{lat:29.705891, lng:-95.442239},
{lat:29.705521, lng:-95.417679},
{lat:29.721149, lng:-95.378708},
{lat:29.906260, lng:-95.485970}
What we will receive on completion of the project:
Provide to us the programming functionality necessary (php or javascript) in order to run this program on our website, using any lat/lng combinations. If an outside API service is used, please provide to us necessary details on what we would need to adjust in the code to make it work for our own registration of the api, if necessary. Also provide to us an array with the calculated solution to the sample array provided.
A sample program would be helpful in deciding on a Freelancer.
We have posted more than 75 projects on Freelancer
You must complete this project in three days.
Project funds will be deposited in a Freelancer Escrow account