Traffic Cameras API no longer returns congestion locations

22 views
Skip to first unread message

Josh Burton

unread,
Jun 2, 2017, 12:01:20 AM6/2/17
to InfoConnect Developers Discussion
Hi,

The Traffic Cameras API used to turn congestion locations for some cameras. It is no longer returning any congestion information for any cameras.

Cheers,
Josh

TrafficInfo

unread,
Jun 5, 2017, 7:27:46 PM6/5/17
to InfoConnect Developers Discussion
Hi Josh, 

Thanks for raising this with us. I have responded to your email and will continue to chat to you there. 

Thanks, 

The InfoConnect Team. 

james

unread,
Jun 5, 2017, 9:04:47 PM6/5/17
to InfoConnect Developers Discussion
Not sure why I can't make any new topics
but 
It would also appear that the api is returning returns with 2 dissimilar structures !
From a parsing perspective the parent xml tag has changed from camera  to cameras 
and 
the ID numbers have changed to 9 digit codes , these used to be a 3 digit code reflected in the cameras url 
I guess the old id's are the <cameraDisplayId>


here's a camera from one return 
<?xml version='1.0' encoding='UTF-8'?>
<tns:getCamerasResponse xmlns:tns="https://infoconnect.highwayinfo.govt.nz/schemas/camera2">
<tns:camera>
<tns:description>South along Nthn Mwy from Wainui Rd</tns:description>
<tns:direction>Southbound</tns:direction>
<tns:group>NA</tns:group>
<tns:id>651</tns:id>
<tns:imageUrl>http://www.trafficnz.info/camera/651.jpg</tns:imageUrl>
<tns:lat>-36.603273</tns:lat>
<tns:lon>174.661741</tns:lon>
<tns:name>SH1 Millwater</tns:name>
<tns:offline>false</tns:offline>
<tns:region>Auckland</tns:region>
<tns:underMaintenance>false</tns:underMaintenance>
</tns:camera>

and here's another return (a few minutes later)

<?xml version='1.0' encoding='UTF-8'?>
<getCamerasResponse>
<cameraDisplayId="651"> xsi:type="java:com.fujitsu.nz.infoconnect.camera.entity.Camera">
<lon>174.661741</lon>
<name>SH1 Millwater</name>
<id>199259474</id>
<loadedDate>2017-06-03T20:02:45.060+12:00</loadedDate>
<underMaintenance>false</underMaintenance>
<lat>-36.603273</lat>
<offline>false</offline>
<region>Auckland</region>
<direction>Southbound</direction>
<group>NA</group>
<description>South along Nthn Mwy from Wainui Rd</description>
</cameras>
I'm using exactly the same URL

These are a few minutes apart,
This seems chaotic, can someone tell me whats going on?

TrafficInfo

unread,
Jun 5, 2017, 9:15:50 PM6/5/17
to InfoConnect Developers Discussion
Hi James, 

Sorry for the delay in responding. You will now be able to post new topics. I believe you have made contact with our service desk in the interim and I will follow up with them to find out what the latest information is regarding this issue. 

Thanks, 

The InfoConnect Team
Reply all
Reply to author
Forward
0 new messages