Integrating distance Matrix in UP-Jsprit Python

Greetings Graphhopper team
I was just using the integration of UP-Jsprit library which is the implementation of the Java library for Jsprit Library in Python, in addition to Unified Planning

regarding the implementaiton of Location (x,y) it is implemented in the following manner

STEP 3 - DEFINE LOCATIONS - COORDINATES

######################################################################################

l0 = Object(“l0”, Location)

problem.add_object(l0)

l1 = Object(“l1”, Location)

problem.add_object(l1)

l2 = Object(“l2”, Location)

problem.add_object(l2)

l3 = Object(“l3”, Location)

problem.add_object(l3)

l4 = Object(“l4”, Location)

problem.add_object(l4)

l5 = Object(“l5”, Location)

problem.add_object(l5)

l6 = Object(“l6”, Location)

problem.add_object(l6)

l7 = Object(“l7”, Location)

problem.add_object(l7)

l8 = Object(“l8”, Location)

problem.add_object(l8)

l9 = Object(“l9”, Location)

problem.add_object(l9)

l10 = Object(“l10”, Location)

problem.add_object(l10)

l11 = Object(“l11”, Location)

problem.add_object(l11)

l12 = Object(“l12”, Location)

problem.add_object(l12)

l13 = Object(“l13”, Location)

problem.add_object(l13)

l14 = Object(“l14”, Location)

problem.add_object(l14)

l15 = Object(“l15”, Location)

problem.add_object(l15)

l16 = Object(“l16”, Location)

problem.add_object(l16)

l17 = Object(“l17”, Location)

problem.add_object(l17)

l18 = Object(“l18”, Location)

problem.add_object(l18)

l19 = Object(“l19”, Location)

problem.add_object(l19)

l20 = Object(“l20”, Location)

problem.add_object(l20)

l101 = Object(“l101”, Location)

problem.add_object(l101)

as well as the corridinates are defined in the following manner

######################################################################################

STEP 5 - INITIALIZE LOCATION COORDINATES

######################################################################################

problem.set_initial_value(x(l0), 18)

problem.set_initial_value(y(l0), 6)

problem.set_initial_value(x(l1), 15)

problem.set_initial_value(y(l1), 28)

problem.set_initial_value(x(l2), 9)

problem.set_initial_value(y(l2), 28)

problem.set_initial_value(x(l3), 17)

problem.set_initial_value(y(l3), 2)

problem.set_initial_value(x(l4), 18)

problem.set_initial_value(y(l4), 29)

problem.set_initial_value(x(l5), 3)

problem.set_initial_value(y(l5), 10)

problem.set_initial_value(x(l6), 15)

problem.set_initial_value(y(l6), 8)

problem.set_initial_value(x(l7), 2)

problem.set_initial_value(y(l7), 25)

problem.set_initial_value(x(l8), 18)

problem.set_initial_value(y(l8), 11)

problem.set_initial_value(x(l9), 15)

problem.set_initial_value(y(l9), 17)

problem.set_initial_value(x(l10), 7)

problem.set_initial_value(y(l10), 1)

problem.set_initial_value(x(l11), 13)

problem.set_initial_value(y(l11), 25)

problem.set_initial_value(x(l12), 18)

problem.set_initial_value(y(l12), 29)

problem.set_initial_value(x(l13), 17)

problem.set_initial_value(y(l13), 19)

problem.set_initial_value(x(l14), 28)

problem.set_initial_value(y(l14), 18)

problem.set_initial_value(x(l15), 19)

problem.set_initial_value(y(l15), 20)

problem.set_initial_value(x(l16), 20)

problem.set_initial_value(y(l16), 14)

problem.set_initial_value(x(l17), 21)

problem.set_initial_value(y(l17), 8)

problem.set_initial_value(x(l18), 3)

problem.set_initial_value(y(l18), 25)

problem.set_initial_value(x(l19), 16)

problem.set_initial_value(y(l19), 20)

problem.set_initial_value(x(l20), 0)

problem.set_initial_value(y(l20), 1)

problem.set_initial_value(x(l101), 60) #final port destination as intial

problem.set_initial_value(y(l101), 70)

Is there any possible way where i can integrate a classified distance -cost matrix instead of X,Y Coordinates in Python
I appreciate your help and sorry for any inconvenience caused