Location:

RTIC Kanban

City Map Board

Draw a road map of the city based on the city name or center point. The sample code is as follows:

                //Get traffic kanban based on city name. For example, “Beijing” or “Beijing”
                GraphICSearch.searchGraphIC(GraphICSearch.Query.newQuery("BEIJING"), new GraphICSearch.GraphICListener() {
                    @Override
                    public void onSuccess(final byte[] result) {
                        // Request success
                    }
                    @Override
                    public void onFail(final APIStatus status) {
                        //Request failed
                    }
                });
            

GraphICSearch.Query Description:
1. GraphICSearch.Query.newQuery(String cityName), the parameter is the name of the city, such as "Beijing" or "Beijing".
Note: The result return interface is an asynchronous thread interface.

City List

Return city listing information with traffic information, sample code is as follows:

                // Get a list of cities with traffic information
                GraphICSearch.searchDistricts(new GraphICSearch.DistrictsListener() {
                    @Override
                    public void onSuccess(final GraphICDistrictResult result) {
                        // request succeeded
                    }

                    @Override
                    public void onFail(final APIStatus status) {
                        // Request failed
                    }
                });
            

Note: The result return interface is an asynchronous thread interface.

TOP