Update for the Python program for estimating travel time matrix by Google Maps API

Pertaining to Chapter 2, Appendix 2B, “Estimating Travel Time Matrix by Google Maps API” on Page 42

Dated April 18, 2016

Thanks to Pooya Ghorbanizigsari of New School for alerting us of this issue. Google Maps API has changed the syntax. In the Python program file TravelTime.py under the data folder “Louisiana/Scripts”, we need to delete the “()” for latitude and longitude inputs. The line is now updated such as googletext = “http://maps.googleapis.com/maps/api/directions/xml?origin=” + str(fromY) + “,” + str(fromX) + “&destination=” + str(toY) + “,” + str(toX) + “&sensor=false”.

You may download the updated Python program file TravelTime.py.