Java code used to fetch traffic data from Digitraffic API.
The data is stored in JSON and the API response is GZIP compressed.
The Gson library is used to convert the JSON response to an equivalent Java object.
The methods for data fetching can be found in the file ServerRequest.java.
The methods for URL generation can be found in the file DigiURL.java
Code testing is done in the file Main.java and the rest of the classes are merely representations
of the data being fetched.
More info on the API:
https://www.digitraffic.fi/
More info on Gson:
https://sites.google.com/site/gson/
-
Notifications
You must be signed in to change notification settings - Fork 0
llohi/api-digitraffic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Java code used to fetch traffic data from the Digitraffic API
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published