The web service estimates travel time within segments of the New Zealand State Highway Network based on traffic flow measurements as well as the total time required to complete a specified journey across segments.
The service API accepts input of a location and returns data about the highway segment, including average traffic speed, default speed, and vehicle occupancy. The API also lists journeys including that segment and sums segment time to calculate total journey travel time.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.