OptiMap version 4 is here
Hold down shift while pressing reload to make sure the page fully reloads if OptiMap appears broken.
The first thing you’ll notice is a complete makeover of the user interface. The functionality has grown considerably since I first posted OptiMap in 2007, and the controls were scattered randomly around. Now, they are organized into neat little drawers on the left, in the order you are likely to be using them.
There is some new functionality as well. The ‘Edit Route’ section gives you the chance to re-order the trip after it has been computed. Have to visit one client first? No problem, drag to the top. You can also delete stops from the itinerary here.
OptiMap 4 also has a more powerful TSP solver routine. The new solver kicks in when there are more than 15 stops, and produces better and more robust solutions than the old engine. It is guaranteed to perform better than before, and in some hard cases I’ve tested, it improved the solutions by as much as 6-7%. That means that if you spent 8 hours on the road before, you now get home half an hour earlier.
Support for Garmin GPS units is now added as well. Support is experimental, since I only had access to one Garmin device, which did not support routes. I’m interested to hear whether this works on your device if you have a Garmin GPS.
There are some bug fixes as well: When pasting data from Excel spreadsheets into the bulk add box, the cell delimiters were lost. This is fixed. The print function used to show half a page of unnecessary white space at the bottom, thus it sometimes would print blank pages at the end. This is fixed so you won’t be wasting paper needlessly any more.
As a bonus, you may now access the service from a shorter address: www.optimap.net (the old address will continue to work, and the page will remain identical)
I hope you enjoy the update! Please post questions, feedback, bugs and suggestions here. I’m sure I broke something during the update…

January 25th, 2012 at 21:38
Hi, quick question does optimap require a certain browser? ie 8 or 9? My problem is that my company computer i use has ie 7 installed and the map portion doesnt show up. Any thoughts would be great. Thanks.
January 25th, 2012 at 22:31
I wasn’t aware of a browser restriction. Did OptiMap work before for you? I’ll check to see what I can find. I’ve tested on Chrome, Firefox and Safari, but IE isn’t available for macs, so I can’t easily test it.
January 25th, 2012 at 22:35
I did some searching, and found a guy who had a problem similar to yours:
“Do you have IE enhanced security turned on? We recently were scratching our heads over problem #1 until we added the following sites to IE’s list of not-restricted (e.g., trusted) sites:
- http://*.google.com
- http://*.googleapis.com
- http://*.gstatic.com ”
Maybe it helps?
January 27th, 2012 at 08:34
Thanks Geir.
I have been using your TSP Solver on my iPad and Garmin GPS while doing a trail delivery network in Brisbane Australia. V4 looks good, more stable, a little quicker and more robust. Safari on iPad runs out of memory at about 25-30 stops.
Again Thanks.
p.s. Look forward to the Garmin export.
January 27th, 2012 at 09:05
Thanks for the report. I’ll see if there’s anywhere I can save some memory and I hope to have the Garmin code ready this weekend.
January 30th, 2012 at 12:25
Garmin code is added, but it’s experimental. The device I tested on had no support for routes, so the route export feature is untested. There is an option to just export waypoints, which works on most units, but is a bit cumbersome to use.
January 30th, 2012 at 23:47
The export to Google Maps is helpful thanks! If you could show the trip time between locations it would be very helpful! (now i currently export to Google maps to accomplish this)
February 2nd, 2012 at 16:27
Does anyone know a api that can convert the route data to other formats for other devices?
@gebweb, do you code custom solutions for paying clients, i may be interested. Can you please contact me?
February 8th, 2012 at 18:26
Love this program. However, the latitudes and longitudes when you export the “Toggle Raw Path Output” are often different than the latitudes and longitudes that are bulk entered. This makes it difficult to compare what was entered with the resulting output.
Is there a way to make the longitude and latitude “Raw Path Output” data match what was bulk added?
Or perhaps a “Calculate As Entered” functionality could be added so that the “Raw Path Output” can first be associated with the data that is bulk entered. The “Fastest Route” could then be calculated and compared to the revised latitudes and longitudes that the program uses.
February 9th, 2012 at 10:33
Hi,
I think adding labels to each lat, lng pair is more efficient than trying to match them with the original data. There is a way to do this, albeit a bit cumbersome, with the http interface and the name parameter. E.g http://www.optimap.net/?loc0=(60.0,10.0)&name0=home&loc1=(60.1,10.0)&name1=geocache1 . I’ll try to come up with a way to add labels to the user interface, but as always, user interface is my weakest side…
Geir
February 18th, 2012 at 20:53
A simple but useful output would just be a list of the ordered stop addresses without the driving directions. One additional column of output information would also be helpful: the position index from the bulk added input list.
February 19th, 2012 at 19:53
Hi,
Really liked the new look and options. It would be really great to have the option to add label. I would think a three column setup of lat, long, label would be very user friendly.
If it is difficult to split, you could add an option to label upload that would correspond to the lat long in the same sequence.
From new stuff, the ability to give an input of number of vehicles available would be great. Not sure how complicated the model becomes. It is something that a lot of people planning multiple routes would need.
March 3rd, 2012 at 08:33
Hi
“Toggle Raw Path Output” :
Your idea for adding labels to the original point – for easy match of the new ordered points with the originals is GREAT !
Waiting for this is well !!! (any idea when to expect this to happen ?)
could you please just spit a sample of the new input http request and its raw output so we can prepare our code ?
Many thanks for a great site !!
March 3rd, 2012 at 22:05
Hi Gonen,
I’ve had little spare time the last few weeks, and will be busy until late March, but the http request params will be
label0=your label&label1=…
in addition to the current params. The output is likely to be of the form
label1:(lat,lng)
label0:(lat,lng)
…
Hope that helps
March 4th, 2012 at 08:16
1 – Super !
Will solve lot of problems for me and others and will make it very easy to understand the new route.
===================================
2 – Just would like to remind you about new routing option that we discussed already.
Currently we have A-Z and Round trip.
I named this new suggested option – “Tourist walking tour”
This option has a starting point (e.g – the hotel where he sleeps) and more points the tourist would like to visit (e.g – museums)
This option does not have ending point.
Why ? because when a tourist comes to town, he wants to walk through several points of interest in the shortest way. He does not care where will be the last point (As he plans to take a taxi back to the hotel…)
Is it complicated ?
===================================
3 – Please note that viewing the route on Google Maps, has the 25 points limit…
=====================================================
Great site !!!
Thanks
March 5th, 2012 at 08:50
Hi Geir,
Great website!!!! I have a question, on the export function, would it be possible to export the route segments? Currenttly it only exports the way points coordinates. Would it be possible to export the total line segment coordinates?
Let me know if this is possible.
I appreciate your time,
Sincerely,
March 7th, 2012 at 07:27
Hi Geir,
Would it be possible to export the route to KML?
Thanks,
March 17th, 2012 at 18:12
Hey have you tried or is it possible to get a QR Code output from this?
March 22nd, 2012 at 21:18
Great functionality!
I believe I have found a bug, though. When I try to view in Google Maps, only the first 4/31 destinations is displayed.
Is there a way to export the list of addresses?
Below is the raw path output I am using:
(41.84434, -87.71935000000002)
(41.84617, -87.71971000000002)
(41.85087, -87.72543999999999)
(41.87481, -87.74504999999999)
(41.90419000000001, -87.72145999999998)
(41.90656000000001, -87.72153000000003)
(41.89190000000001, -87.70641999999998)
(41.8804, -87.68639000000002)
(41.89081000000001, -87.67689000000001)
(41.89686, -87.67462)
(41.90141000000001, -87.67474000000004)
(41.90328, -87.67236000000003)
(41.91775000000001, -87.67790000000002)
(41.91935, -87.68016999999998)
(41.91761, -87.68499000000003)
(41.93209, -87.69987000000003)
(41.93213, -87.69289000000003)
(41.93952, -87.68319000000002)
(41.93977, -87.66380000000004)
(41.94251000000001, -87.66389000000004)
(41.94258000000001, -87.65904)
(41.92171, -87.65607)
(41.87811000000001, -87.62979000000001)
(41.87811000000001, -87.62979000000001)
(41.85285, -87.6465)
(41.85255, -87.64648)
(41.83028, -87.68531999999999)
(41.85672, -87.67858999999999)
(41.85382000000001, -87.69056999999998)
(41.84999000000001, -87.69538)
(41.84626, -87.70137999999997)
(41.84434, -87.71935000000002)
March 22nd, 2012 at 21:21
Google Maps only handles up to 25 addresses, so that’s probably why they won’t display in Google Maps.
March 22nd, 2012 at 22:45
Also, it appears to not want to calculate a route if I try add the above raw output into the bulk address area.
March 29th, 2012 at 17:12
Hi Geir
Any news about the:
label1:(lat,lng)
label0:(lat,lng)
thanks for any update
April 2nd, 2012 at 13:49
Hi,
Labels in the toggle raw path output, would be a nice update.
Now it’s almost impossible to use this ordered output, because it slightly changed the coordinats…
thanks for any update
I’am waithing for the next version
April 2nd, 2012 at 15:56
It’s been quite a busy time for me, but I’ll try to add labels in the raw output very soon…
April 14th, 2012 at 09:04
We wait – Many thanks !!!!!
April 17th, 2012 at 13:15
@Gonen, I finally got around to doing this. Sorry for the long wait and thank you for your patience!
There is now a new button under export which shows the raw path including labels when you press it.
To add labels, use the HTTP GET parameter called name, e.g: http://gebweb.net/optimap/index.php?name0=Start&loc0=(60,10)&name1=First%20stop&loc1=(59.5,9.8)&name2=2nd%20stop&loc2=Askroken%2051
April 17th, 2012 at 13:26
Works perfect !!!!! Bravo !!!
April 23rd, 2012 at 22:45
wen i try bulk add by adress , he will not work.
N 51° 19.513 E 005° 34.912
N 51° 19.491 E 005° 38.323
N 51° 19.897 E 005° 36.315
N 51° 19.239 E 005° 33.969
N 51° 17.712 E 005° 30.942
N 51° 18.337 E 005° 31.993
N 51° 18.505 E 005° 32.369
he says :failed to geocode adress: N etc.
Reason: no result was found for this geocoder request.
Before the update there was no problem.
April 24th, 2012 at 07:21
Ad,
Your list of destinations worked perfectly for me in Google Chrome. Maybe there was some temporary problem?
April 24th, 2012 at 15:37
I copy paste it from an excell sheet and sometimes he will not accept the destination. when i delete the destination and i fill the excell sheet again with the same destination then it is correct.!!
I use it for geocaching.
April 26th, 2012 at 22:54
I am trying to get address for around 50 locations but the system seems to freeze up and not give me any results
April 27th, 2012 at 15:59
Hello, I noticed a little bug: if there is an apostrophe in one of the place-names, the “View in Google Maps” button doesn’t work (I think the underlying JS interprets the apostrophe as an end-of-string marker).
Thank you for your great effort and keep up the good job!
April 28th, 2012 at 09:44
I fixed the bug with apostrophes now (by simply ignoring them).
May 4th, 2012 at 15:20
Excellent tool! Will be donating for sure. I like the custom labels and the website integration which I am currently using. Although I would like to have this run strictly from my own site but I’m finding the code is confusing and it won’t work for me.
May 15th, 2012 at 17:19
About missing waypoints in Google Maps: is there a way to modify the Export function, so that the comma following State is not exported to GMaps? As it is now each comma must be deleted by hand to avoid problems.
Great Program!
May 15th, 2012 at 17:25
This might also resolve the lat/long variations mentioned earlier.
May 23rd, 2012 at 22:25
Excellent tool also for me.
I would like to know if there is a way to load on your web site a text string so you can directly insert the 10 addresses and give inivio “Calculate Fastest Roundtrip”.
Example string: “http://gebweb.net/optimap/index.php? …”
Thanks
May 24th, 2012 at 13:01
Great tool for a service technician. I sincerely thank you and promise my donation is coming.
2 suggestions
1) Great job on the export to garmin & tom tom… Is there an export to Android? I tried using the “Chrome to Phone” app but to no avail.
2) I’ve set my book mark to the correct map possition and zoom, but is there a way to have the start and end point? (Just realized how lazy I am to not have to take 4 seconds to type in my address) Take it as a compliment, GebWeb is near perfection.
June 5th, 2012 at 19:44
New tool for me. Friend asked me if I could find out how it works for geocaching. Copied the coordinates from geocaching to Optimap.
Calculated the roudn trip and exported to Garmin 450 Oregon without any problems. Great and thanks!!
June 5th, 2012 at 19:48
@Dirk, Happy geocaching then! Let me know how it performs outdoors on that device.
June 14th, 2012 at 18:56
Is there any way that we can plot more than 100 addresses at a time?
June 14th, 2012 at 21:13
I too love this tool. I was using under GMaps v2 and am trying to migrate it to GMaps v3 using Optimap. It works perfectly, however for some reason the path that appeared in blue is not there. I just see my numbered icons on the map but no path drawn showing the route. Is there a setting to turn this off or on?
June 14th, 2012 at 21:16
@Kevin
It’s a bug in Google Maps API 3.9. You have to force it to use 3.8 (see source of gebweb.net/optimap) for how to do this.
June 14th, 2012 at 21:17
@rlong
Sorry, no way to plot more than 100 addresses right now. Don’t have the icons, and would take a really long time to solve. If you only need to plot, then I am sure there are many maps apps that will do that.
June 14th, 2012 at 21:24
@geir
Awesome that worked great! One more question…I have numbered icons on the map…#1 is red, rest are green.
But the directions show #1 as red and rest blue. I don’t have blue specified in the js. How to correct this??
June 15th, 2012 at 11:16
Great tool indeed! Many thanks guys.
One question though: how would it be possible to change the 1,2,3 pinpoints with other, more intelligible labels? (- such Start, 2nd, …Finish or maybe street_name or other)
Thanks and regards,
johnny
June 15th, 2012 at 11:21
update: I’m trying to embed optimap as anIframe in my application – so not doing programming, but just calling the url with the address parameters. So is there a parameter to pass with other pinpoint name? – &label and &name not helping for changing pinpoints, but just for the directions.
June 15th, 2012 at 11:59
@johnyy_q No, there is currently no option to change the pinpoint icon. Do you mean the icon or the popup when you click on a pinpoint icon?
June 18th, 2012 at 15:00
Hi Geir,
I would like to change the pinpoint icon. But no problem if that’s not possible yet.
However, how could I change/show the popup when clicking the pinpoint – currently the address is showing in a popup if I click the pinpoint.
Thank you.
July 3rd, 2012 at 05:05
I’m trying OptiMap for the first time. I’m inputting 29 addresses int othe bulk loader. I click “fastest route” and then it stalls out compeltely. I mean, totally does not give me anything, even after 30 mins has passed! I heard great things, but am not experiencing them
July 6th, 2012 at 21:13
Hi Geir,
first of all thanks for your nice work its so far the only solution i found that comes close to my needs!
I am currently in the middle to understand and refactor the salesman problem for my very own needs. I will get the problem of having more waypoints then avrg and rly want to minimize the API usage.
So i was thinking about let the client fetch the Distance Matrix instead of the Route from Google and then have to calculate the route on my server.
Is there a flaw in my thinking or why did you prefer getting the route data from Google instead of the distance.
Bye
Oliver
July 7th, 2012 at 02:13
@Oliver your thinking is correct. However, the code for fetching distances was written before Google API had a distance matrix call. If you replace the code, the only thing you need to be aware of is that you have to make a few more calls to Google after you have computed the best permutation to get the full route. I would be very interested in including this code into the Open Source project if you succeed in refactoring it.
August 3rd, 2012 at 12:56
Hi Geir,
Optimap is great! Just one question: Would it be possible for there to be either an export of the postcodes in their final (optimized) order or for the optimised postcode list to appear in order on screen? This would be a big help! At the moment, once the tripped has been calculated, you can’t even click on the numbers on the map to find out which is which postcode. I suspect a lot of people will use this tool to order their itinerary and won’t really need the extensive list of directions; just the order of the waypoints.
Thanks,
Clare
August 3rd, 2012 at 13:05
@Clare, There’s a button called “Raw path with labels” inside the “Export” drawer on the left hand side after the optimized route has been computed. Does it do what you want?
August 3rd, 2012 at 13:47
Not quite. If I enter 30 addresses in no particular order and ask for the route to be calculated in an A-Z trip, it would be really useful to be able to export a simple list of the addresses numbered 1-30 in the optimized order. If I’m using this tool to plan a delivery route, for example, I need to know which address corresponds with each stop. So something like the “Raw path with labels” but with the postcode or address entered against each stop.
Does that make sense? Thanks for replying!
Clare
August 3rd, 2012 at 14:43
@Clare, I think I know what you mean now. Can you refresh the page and see if “Optimal address order” makes your day easier?
August 3rd, 2012 at 15:23
@Geir That is exactly it! Thanks so much for adding it. It will make life a lot easier for me (and, I think, others).
August 16th, 2012 at 01:39
I am feeding addresses to a page…when I only have 1 address i get this error:
TypeError: legs[bestPath[i - 1]] is undefined
Any way to allow for only 1 address on a map?
August 17th, 2012 at 21:15
Hi Geir
Nice work !!
Think this is good bit of programing, is it open source as I would like to make a couple of changes like map bigger on my screen,
I can confirm it works fine on IE 9 on windows platform,
and the garmin export works fine on the garmin nuvi 1490T model
which means it will work on all Nuvi models.
Thanks
August 18th, 2012 at 02:50
Trying to map a round trip to all 48 state capitals in the US from a starting location and it times out every time using both IE9 and Chrome 21. I’m adding the following destinations (first destination home address withheld).
600 Dexter Ave Montgomery, AL 36130
1700 W Washington St Phoenix, AZ 85007
203 State Capitol Little Rock, AR 72201
1400 Tenth St Sacramento, CA 95814
200 E Colfax Ave, Denver, CO 80203
210 Capitol Ave Hartford, CT 06106
411 Legislative Ave Dover, DE 19901
400 S Monroe St, Tallahassee, FL 32399
206 Washington Street Atlanta, GA 30334
700 West Jefferson St Boise, ID 83702
500 S 2nd St Springfield, IL 62701
100 N Senate Ave, Indianapolis, IN 46204
1007 E Grand Ave, Des Moines, IA 50319
906 SW Jackson St Topeka, KS 66612
700 Capitol Ave Frankfort, KY 40601
900 N 3rd St Baton Rouge, LA 70802
210 State St. Augusta, ME 04330
91 State Circle Annapolis, MD 21401
24 Beacon St # 458 Boston, MA 02133
110 NCapitol Ave. Lansing, MI 48933
75 Rev. Dr. Martin Luther King Jr. Blvd, St Paul, MN 55155
400 High St Jackson, MS 39201
201 W High St, Jefferson City, MO 65101
1300 E 6th Ave, Helena, Mt 59601
1445 K St, Lincoln, NE 68508
101 North Carson St, Carson City, NV 89701
20 Park St, Concord NH 03301
125 W State St, Trenton, NJ 08608
491 Old Santa Fe Trail, Santa Fe, NM 87501
26 Eagle St, Albany, NY 12207
1 E Edenton St, Raleigh, NC 2760
600 East Boulevard Avenue, Bismarck, ND 58501
36 E Broad St. Columbus, OH 43215
2300 N Lincoln Blvd, Oklahoma City, OK 73105
900 Court St NE, Salem, OR 97301
400 Commonwealth Ave, Harrisburg, PA 17101
146 Smith St. Providence, RI 02908
1200 Gervais St Columbia, SC 29201
500 E Capitol Ave Pierre, SD 57501
600 Charlotte Avenue Nashville, TN 37243
112 E 11th St Austin, TX 78701
E 300 N, Salt Lake City, Salt Lake, Utah 84103
115 State Street Montpelier, VT 05602
1000 Bank St Richmond, VA 23219
416 Sid Snyder Avenue SW Olympia, WA 98504
1900 Washington St Charleston, WV 25305
2 E Main St, Madison, WI 53702
200 W 24th St Cheyenne, WY 82001
Any assistance would be greatly appreciated. Thank you.
August 25th, 2012 at 01:01
Any way I can feed just 1 address without getting an error?
August 25th, 2012 at 01:54
Awesome job dude!!
August 30th, 2012 at 14:36
Geir,
I input the following in bulk:
(40.706544, -74.01285200000001)
(40.709782, -74.00971400000003)
(40.722248, -73.997188)
(40.708792, -74.005267)
And I get the following out:
(40.70648000000001, -74.01273000000003)
(40.70967, -74.00980000000004)
(40.72224000000001, -73.99716999999998)
(40.70884, -74.00522000000001)
Why does the output latlng(s) differ from what was input? I really need a solution for this problem. They should be the same since you are not geocoding anything unless the input is an address.
Please advise.
Thanks!
August 31st, 2012 at 05:58
Thanks for this great tool. I got it to work quickly for about 20 addresses but now it seems stuck on 75, all in my small city. How long should I expect it to take to calculate this number and up to 100?
September 1st, 2012 at 18:36
@Steven
Since its javascript doing the calculation it is dependent on your computer’s resources. The more available memory the better. I have an app that uses this script and have tried sticking to around 24 max as memory/load times was one consideration. Hope this helps.
September 11th, 2012 at 17:03
Hi Geir! I have some problems with your program, how come it does not recognize the alleys and small roads? Kindly check the shortest path of these addresses.
(14.271584,121.069665)
(14.271586,121.069411)
same thing happens to google earth and some other online based router that I’ve used before, any solutions?
September 13th, 2012 at 04:32
I’m doing the civic-minded, American thing and volunteering to do canvassing in this year’s Presidential race: 40 households on a Sat afternoon in the hot sun with no guidance as to how to traverse -just a Google map print out w/ a bunch of dots and addresses. Good luck wondering how many extra miles you walked.
Being a lazy engineer I *knew* there had to be some smart/nice guy out there who did some sort of shortest path whosey whats that would solve my problem. Bravo! Optimap is da bomb! It produced what looks to be a great navigation with my 40 households first time out.
Now I gotta make this work for all my fellow canvassers and not just me: in short, how do I automate to do dozens of routes week in and week out? Is there any sort of programmatic interface to Optimap? I know I can use the somewhat inelegant browser drivers (Selenium et.al) but I was hoping for a cleaner solution. Also: am I going to be running afoul of any Google Maps limitation on number of hits if I’m doing lots of routes (each of 40 destinations tops)?
Any advice is much appreciated and thank you again for your hard work in providing such a good service.
Best regards,
Russell
September 13th, 2012 at 08:05
Hello
The tool works very well.
Is it possible to insert an additional rubric?
It would be helpful if you could add a comment or name to the stations.
It would be nice, if you could use a column in Excel for this.
Like: zip code, city, address, comment/name
Thanks and greetings from Germany
PS: It works with my TomTom XL-S IQ Routes
September 19th, 2012 at 22:31
Hi Geir,
Great tool, really use it a lot and save a lot of time.
3 questions
- Is it possibly to ad the value of &name#= from the url variables to the pinpoints.
like “0-destinationname”
- Is it possible to add a time table. with time between points and total driving time:
something like:
#-name (time between) – (total time)
1-Start
2-destination 1 – (1h,23min) – (1h,23min)
3-destination 2 – (0h,18min) – (1h,41min)
1-Start – (1h,25min) – (3h,06min)
And Id would be great if I could add a stop time for each point where you stop.
Most of the time I lose 15 minutes add every stop, it would be great if I could add something like &stoptime=15min in the url variable.
- Maybe a option for max speed, when driving with a truck I have a max speed of 90, so total trip time is not correct.
As far as I know google maps does not have a max speed option, so that will be difficult.
September 20th, 2012 at 10:13
or by question 1 maybe when you click on the pinpoint to see the &name# value in a label.
September 20th, 2012 at 17:21
Your website ROCKS. IT WORKS. YES! Woot woot! I’m SO happy with the time this has saved me. And YES, the export function to my Garmin works PERFECTLY. Nice job.
September 28th, 2012 at 06:53
What’s up dear, me plus my mother are as well watch funny videos however after I finished my homework
October 1st, 2012 at 01:22
I can’t export. When I click on the “Export” button, a blank space appears underneath it, but that’s it.
October 1st, 2012 at 07:10
@Jauchart: Did you click “calculate fastest roundtrip” before trying to export?
October 6th, 2012 at 04:57
I want to export the route gpx file and I thought that I would be able to copy and paste the info into a csv file and it’s pasting as one line. Can you please advise how to save the file on my computer?
October 6th, 2012 at 09:36
@Rosemary
I think the best way to get the route as a gpx file is to select the “Export” drawer, select “Send to Garmin”, then right-click the link called “Download GPX route file” and use save link as file.
October 12th, 2012 at 09:11
Hello.
Great tool that you have…
In my site I have a map with 1365 markers (clients) and I use google maps to calc the route between some of the points. But I can’t use more than 10…
I would like to use your js but I dont know where to start. I try the example code but nothing happens. Can someone help me?
Thanks
October 28th, 2012 at 23:35
I’m still experiencing issues and unable to get the route for the 48 state capitals (addresses listed above). I switched to the Opera browser as well to no avail. I’m running Windows 7 64 bit on a computer with 16G of ram. 7.5 out of 7.9 windows user experience rating. it’s a fast computer with plenty of resources, yet it still fails to calculate the round trip route to the 48 state capitals.
Any suggestions?
October 29th, 2012 at 19:20
@Mike, I’m seeing the same thing here. I had no trouble computing a 100 destination roundtrip in New York, but I’m only able to get 2/3 of the way with the state capitals. I think that the issue is the long distance between these, which makes each leg consume much more memory, which is making the browser crash in the end.
So unfortunately, I don’t have a resolution for you
November 5th, 2012 at 00:37
My route transferred to my Garmin Nuvi 2595 LM just fine and I was very happy that it did. It seemed like it took a few attempts to do it but finally the upload button appeared and it loaded great.
Thank you,
Wes
Colorado
November 8th, 2012 at 16:35
Hello, I am trying to add about 30 addresses to map using a link, but the application freezes after 12 points are added. I have tried with different addresses and same result. Here is a sample link, any help would be appreciated. http://optimap.net/?loc0=400%20E%20HOWRY%20AVE%2032724&loc1=2678%20CORBY%20DR%2032763&loc2=2678%20CORBY%20DR%2032763&loc3=3750%20CORGAN%20RD32724&loc4=10%20JEANETTE%20DR32720&loc5=1101%20EVERGREEN%20PL32720&loc6=370%20CONNECTICUT%20AVE32744&loc7=373%20SHADY%20LN32763&loc8=123%20E%20HOLLY%20DR32763&loc9=2500%20N%20VOLUSIA%20AVE%2032763&loc10=811%20UPPER%20CAPE%20RD%2032763&loc11=1500%20EAST%20PKWY32724&loc12=120%20%20W%20NEW%20YORK%20AVE32720&loc13=505%20SANDALE%20CT32724&loc14=120%20E%20VOLUSIA%20AVE32724&loc15=2010%202ND%20AVE32724&loc16=318%20S%20OSCEOLA%20ST32724&loc17=416%20CORTEZ%20AVE32130&loc18=841%20W%20BERESFORD%20AVE32720&loc19=950%20S%20WOODLAND%20BLVD%2032720&loc20=986%20COUNTRY%20CLUB%20PARK32724&loc21=2285%20N%20KEPLER%20RD32724&loc22=502%20HARRISON%20PLACE%20DR%2032723&loc23=504%20HARRISON%20PLACE%20DR%2032724
November 8th, 2012 at 16:44
Seems like there is an extra space in loc12= that is causing the 13th address not to geocode. For some reason, 120 W NEW YORK AVE32720 does not work, but 120 W NEW YORK AVE32720 works (notice the extra space between 120 and W).
There definitely should be a human-readable error message for this, but time is always short :/
November 8th, 2012 at 18:39
Thank you for the prompt response, always the little things. Now trying to use this on an ipad seems impossible to reorder stops because dragging doesn’t work. Is there a touch/mobile enhanced version?
November 8th, 2012 at 19:00
No, the webpage is unfortunately very mobile un-friendly. I don’t have much experience in user interfaces, so that’s the hardest part for me to get right. If someone with UI exp would come forward and work with me, I’d love to make a better mobile UI!
November 19th, 2012 at 03:18
Dear geir:
I currently implement my own project and using your code to modified. May i ask where you get the icon after point on the map?after enter the address on the address field. Because after i click”calculate fastest round trip”, all work well, but din’t have the label on the map.
December 1st, 2012 at 17:55
Great tool!
Garmin GPS 76CS export tests results.
Route and Waypoints exports reported successful but the waypoints export was not complete; there are only 3 waypoints (out of the 14 addresses) in the unit. (They were the first address and last plus one other.) The route in the unit contains 14 via points so it appears to be correct.
The GPX file exports of both the route and waypoints results in gpx strings. (Maybe that’s what’s supposed to happen but I expected a File/Save dialog box.) To see if the were valid strings I pasted them in a .gpx file and tried to open them with Garmin’s Mapsource program. Neither would open; the program reported they were not a valid file format. I imported the route to Mapsource from the GPS unit then exported the route to a GPX file and compared it with your gpx string. The most obvious difference is your escape character ‘\’ is being written to the gpx string. Here’s your a snippet of your export for the route point: . Here’s a snippet of the same route point from the export: . (I’m no GPX expert; maybe those ‘\’ are acceptable and there is some other problem.) Shoot me an email if you want clarification or additional testing. Thanks.
December 4th, 2012 at 13:46
he there is no blue line anymore on http://www.gebweb.net/optimap/
use firefox (16.02) or IE (9)
December 4th, 2012 at 13:55
@peter I noticed it too and will look into it once I have time. There was a big Google Maps API update yesterday. The other thing they changed is how many requests you are allowed to make per second. I just updated the code to get around that limit, but it does make the route computation slower.
December 4th, 2012 at 14:06
@geir
Slower is (most of the time) no problem.
But some colored lines would be nice
December 4th, 2012 at 17:02
Yeah, the blue line is back
Thanks…
December 4th, 2012 at 19:05
hey the blue line is still not coming can u just tell me wat all changes have been done
December 4th, 2012 at 21:58
@sharath: Try holding shift while clicking refresh to make sure you get the latest version.
December 5th, 2012 at 04:26
hi i have been using your code for one of my application so should i have to change the entire file and check the same,should i have to change anything in BpTspSolver.js or can u just tell me wat all changes has to be done to get the blue line
December 5th, 2012 at 04:48
@geir thanks geir got it, the blue lines are back ,is there a possibility to change the color of the line
December 7th, 2012 at 01:52
Uploading the route to a Garmin 62SC seems to work. However, when I try to upload waypoints, it says it was successful uploading the route. Looking at the GPS, only routes are getting loaded, no waypoints.
December 13th, 2012 at 14:55
Are you going to publish an REST API for optimap? I would like to gathering results (optimal numeric order) to desktop application. I can create request but I have problem with decode reponse. Any help will be very much appreciated.
Regards,
December 17th, 2012 at 02:31
Here is a list of addresses i am trying to input. most of them default to an incorrect location.
2576 BAYVIEW Street , white rock bc
2854 BAYVIEW Street , white rock bc
12691 BECKETT Road , white rock bc
12757 BECKETT Road , white rock bc
12791 BECKETT Road , white rock bc
2076A BOWLER Drive , white rock bc
2250 CHRISTOPHERSON Road , white rock bc
2519 CRESCENT Drive , white rock bc
2678 CRESCENT Drive , white rock bc
2631 DOGWOOD Drive , white rock bc
12281 GARDINER Street , white rock bc
12227 GILLEY Street , white rock bc
2855 GORDON Avenue , white rock bc
2108 INDIAN FORT Drive , white rock bc
2118 INDIAN FORT Drive , white rock bc
1828 LILAC Drive , white rock bc
2603 MAPLE Street , white rock bc
15805 MCBETH Road , white rock bc
2832 MCBRIDE Avenue , white rock bc
2843 MCBRIDE Avenue , white rock bc
2970 MCBRIDE Avenue , white rock bc
3033 MCBRIDE Avenue , white rock bc
2711 MCKENZIE Avenue , white rock bc
1752 OCEAN PARK Road , white rock bc
1948 OCEAN PARK Road , white rock bc
1992 OCEAN PARK Road , white rock bc
2824 O’HARA Lane , white rock bc
2904 O’HARA Lane , white rock bc
3050 O’HARA Lane , white rock bc
12375 SEACREST Drive , white rock bc
12319 SULLIVAN Street , white rock bc
December 17th, 2012 at 19:50
@Shawn, this seems to be a geocoding problem in Google Maps in general, since it is unable to find those addresses on maps.google.com as well. There’s not much I can do about that, unfortunately. The only thing is perhaps to not show default location if the specific address is not found.
December 20th, 2012 at 20:27
Hy Shawn, i had all your adresses in optimap, just input it without ” , white rock bc”. But calculating takes too long.
Hy Geir, what code is inside tomtom.php please?.
Would you share that?
tnx – Martin
December 22nd, 2012 at 13:36
Thought sometimes is the fastest way not the best way.
take these 3 Points.
(53.37552, 10.229800000000068)
(53.55806000000001, 10.667529999999942)
(53.26367, 10.576090000000022)
Trip duration: 1 hrs 49 min
Trip length: 119 km (74.4 miles)
Shortest way is
Trip duration: 1 hrs 55 min
Trip length: 92.1 KM
so i don´t think that i would drive 27KM more for about 6 minutes difference.
So maybe overlay it all with the “shortest a-z trip” or “shortest roundtrip” ?
December 26th, 2012 at 21:44
I’m using your service to help our boy scout troop plot the routes to pickup old christmas trees. is there something wrong right now because I can’t export or print. in the past when i tried this i could.
thanks
joe
December 27th, 2012 at 09:57
That’s strange, I can both print and export. Which export option are you trying to use? Which browser are you using?
December 27th, 2012 at 13:59
Hi Geir,
I was wondering if it is possible to export a list with the following data:
In the optimized order
- adress
- traval time
On the site itself it only gives the totall travel time. For my job i would like to use the traveltimes between the locations.
Also, i plan routes for deliveries, and we use trucks to deliver. Because of that the traveltime from google is never correct. For me if i multiply the total traveling time with 1,35 i get the right average. Or either
0-10 minutes = +3 minutes
10-30 minutes = +5 minutes
30-40 minutes = +10 minutes
40+ minutes = +15 minutes
(i rarely have more then 60 minutes between these.)
I understand if the second part is maybe a bit overkill for you, but i would really appreciate the time between locations in a list.
Gido
January 11th, 2013 at 16:16
This solution is awesome and does a great job optimizing routes! Nice job with the site. One enhancement I would like to see (as Martin points out) would be the option for the “shortest” route. With the price of fuel it would be nice to know how many extra miles are being used vs the time you are saving. Also how can I donate directly tomthis cause w/o using flattr?
January 13th, 2013 at 05:35
Can you add a checkbox and another if statement in function directions such that you can choose Bicycling?
January 13th, 2013 at 11:33
@Pete,
Bicycling added
@Rob,
I could add an option to calculate the shortest route, but in reality it would not be the shortest route, because Google returns the fastest route between each pair of destinations. If I take the ordering of such fastest routes that give the shortest overall trip, it still would not be the shortest possible trip, and calling it the shortest trip would be a bit misleading.
A donation via PayPal to geir.engdahl@gmail.com is always appreciated. I really like the idea of Flattr, though, and I think there are many sites out there which deserve to get paid a little for their content.
January 23rd, 2013 at 21:29
how are bulk addresses entered? thanks
January 28th, 2013 at 14:32
Hi,
I very much like OptiMap and use it for planning a route of normally 8-9 appointments on one day. Although times may differ in practice, I have to inform several people of my estimated arrival time. For this it would be fantastic, if OptiMap would not only give the total travelling time, but also the travelling time between two locations. Would this be realistic to implement?
Thanks a lot!
Jost
February 6th, 2013 at 15:04
@ jost,
Same for me!!
a option like that will be great.
also a option to calculate a “Stop Time” for each stop to the total time would be nice.
peter.
February 13th, 2013 at 01:10
It has been working fine, but this time I’m getting this message when I try to export.
Fatal Error: File Path: C:\DOCUME~1\steve\LOCALS~1\Temp\npGarmin\tmpD1.tmp, line: 1, char: 5102 Message: expected entity name for reference
February 13th, 2013 at 12:24
I found the problem. I was loading the bulk addresses and one of them had an &, as in 604 & half.
February 22nd, 2013 at 11:32
What a great site Geir!! Fantastic for travellers.
I have found that GPS devices are not a lot of use for my requirements. (and there are tens if not hundreds of thousands like me)
The problem is that a GPS offers the choices of avoiding Toll Roads, Un-paved roads, routes with ferries, Car Pool lanes etc, but none seem to offer what we need, which is the shortest route, BUT, keeping to major roads, (avoiding minor roads)
Choosing the Shortest Route often takes us on back roads which depart a Highway, then re-join the same highway again a bit further on just to save a hundred meters of so, which is no use for someone towing a caravan, or driving a 30 foot motorhome.
Choosing the Fastest Route usually takes a completely different path which we do not want either.
What seems to be un-achievable is to plot a route that we want, on a site like yours, and then upload it “as a route” to the GPS, rather than as a series of positions, which the GPS then calculates the route for.
I see that on your Route Options you have a choice to Avoid Highways, but no choice to “Keep to Highways”, or “Avoid Minor Roads”, which is what all caravaners and motorhome drivers need.
I know there is no point in trying to get GPS manufacturers to do anything about it, so we are dumping our GPS and mapping our routes on Optimaps and taking the Laptop with us, so it would be a great help to us and the many thousand of fellow travellers if we could plot “Shortest Routes on Major Roads”
PhillT
February 24th, 2013 at 13:58
Dear Sir,
I am using optimat to plot best routes for picking up children and bring them to school and back home with several small schoolbusses. I am not a programmer. I use Excel to bulk add addresses. Your site gives me a good estimate of the best routes and what bus i should add a child to.
I would like to thank you for your work!
Jan.
February 28th, 2013 at 16:22
Hi,
Please please add the option to avoid tolls. You currently only have the option to avoid highways. You can see there is a valuable difference.
Syed
March 4th, 2013 at 06:27
Hi there,
just wondering is it possible for OptiMap to resolve later appended lat lng/address without have to reslove the route from first point?
for example I have added 26 points in the map and got the fastest A-Z trip result, I then added 27th point and and ask for the fastest A-Z again and it seems like optimap was requesting all the routes again from google?
thanks,
Leo
March 4th, 2013 at 09:05
Hi Leo,
It is possible, but requires a bit of code. As I’m quite busy, there’s a big back-log of features that are possible and nice to have, but not yet implemented.
March 5th, 2013 at 05:20
Hi Geir,
thanks for the reply, no worries good things takes time, looking forward to it.
thanks,
Leo
March 19th, 2013 at 11:24
ohoh, the blue line is gone.
tested it on IE 9, Chrome 25 and Firefox 19.
March 19th, 2013 at 21:37
@peter, Now the line is back (albeit black). Thanks to Richard Pangborn for submitting the fix to the OptiMap open source project.
March 21st, 2013 at 10:42
Thanks for the Quick fix Geir
March 25th, 2013 at 14:30
Hello,
is it possible to have fixed start and end points, so that you can easily change number of middle points?
March 26th, 2013 at 00:26
Hello,
Optimap seems to be calculating route extremely slow/not at all. I used this system about 3 weeks ago and it was a lot faster. Is there currently a problem with the system?
April 9th, 2013 at 18:57
Since all the routes are saved to the browsers memory requiring a massive amount of ram would there be any way to save the routes as flat files to the server and delete them when the routing is done? Or since it’s all client side? maybe to the local file storage somehow? This is probably impractical or impossible but with all the mundane requests above this is one that I think would be a game changer for solving long routes… thanks for your time.
April 19th, 2013 at 18:49
great web site! unfortunately for some reason right now after plotting all of my locations, it goes very very slowly during the a-z route calculation. I have tried several browsers all with the same problem.
April 19th, 2013 at 21:53
This recent slowness seems to be caused by a recent update on Google’s side, designed to stop users from sending too many requests at once to their servers. Unfortunately, I’ve found no way around it (yet).
Will keep trying. If anyone else has any ideas, that would be great too.
April 26th, 2013 at 21:47
Great tool! I use this when planning my work trips. Can you add the drive times between each location?
May 16th, 2013 at 02:30
Hi Geir, just calculate a route and I see the route drawn on the map, there is a problem or something with my browser?
thanks
May 16th, 2013 at 02:34
Hello!
There seems to be a problem because it does not draw the route on the map!
I hope you can fix it soon
A greeting
May 17th, 2013 at 09:08
@juan, @Oyito: This bug should be fixed now. It was due to an update to Google Maps.