Instanciate Mapchart without using web component

Is it possible to instanciate Map chart without using Web component.
I need to calculate the distance between two places.
I want to achieve this whiteout showing the map.

Hi,

you can just use the Google Maps API directly: https://developers.google.com/maps/documentation/distance-matrix/start?hl=en. There is an official java API client from google: https://github.com/googlemaps/google-maps-services-java

Bye
Mario

Yes. I found the Java Client and has installed the maven repository.
Have written the code based on some examples.
It works as expected.
I will share my code and steps here at the forum.