HERE Map Attributes API, get Administrative Shape polygons using Java

Some time your application needs the shape of an administrative(country, county ...) unit, to execute spatial operations. One of HERE recommendation is to use the Map Attributes REST API.

However, in the above API the shape geometry of an admin unity can be split over multiple tiles of HERE Map Attributes Layers. To combine and union all parts together is sometime cumbersome.

The Java example demonstrates how parts of big admin topologies can be efficient downloaded and combined in one single entity. The code can be downloaded at https://bitbucket.org/blackmap/sd_here_mapatr_admin_shape/src/main