# 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)

l1 = Object(“l1”, Location)

l2 = Object(“l2”, Location)

l3 = Object(“l3”, Location)

l4 = Object(“l4”, Location)

l5 = Object(“l5”, Location)

l6 = Object(“l6”, Location)

l7 = Object(“l7”, Location)

l8 = Object(“l8”, Location)

l9 = Object(“l9”, Location)

l10 = Object(“l10”, Location)

l11 = Object(“l11”, Location)

l12 = Object(“l12”, Location)

l13 = Object(“l13”, Location)

l14 = Object(“l14”, Location)

l15 = Object(“l15”, Location)

l16 = Object(“l16”, Location)

l17 = Object(“l17”, Location)

l18 = Object(“l18”, Location)

l19 = Object(“l19”, Location)

l20 = Object(“l20”, Location)

l101 = Object(“l101”, Location)

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