As the root object for this response, the Highway In State object will contain a Highway and State object. Any child Exit object in need of the State or Highway data should pull it from the root Highway In State
For example, for I-65 in Tennessee Northbound, the previous Highway In State would be I-65 in Alabama.
For example, for I-65 in Alabama Northbound, the next Highway In State would be I-65 in Tennessee.
Array of Exits
The structure of this data is different depending on if a
As you can see above, this API accepts an optional
search_result_id parameter. We will refer to this API with no
search_result_id as Regular Mode and this API with an included
search_result_id as Search Mode.
It is very important to realize that the
exits responses returned from Regular Mode are quite different in structure than Search Mode. The data for
next_highway_in_state are the same regardless of which mode you are in, but
exits will be different.
When in Regular Mode, the Exit objects in the
exits array will have an optional
categories child object. The
categories object contains what major amenity categories (eg: Gas, Food, Lodging, etc) are found at that exit.
When in Search Mode, the Exit objects in the
exits array will have an optional 'businesses' child object. The
businesses object contains an array of Business / POI objects that are found at that exit, each of which contains with Exit Mapping object that tells which side of the exit that business is located.
Common Next API(s)