SWORD.get_AOI_of_centerline()
# Import package
from dahitiapi.SWORD import SWORD
# Initialize Class
sword = SWORD()
SWORD_version = 'v17'
SWORD_reach_id = 11430000031
longitude = -114.0974
latitude = 58.6483
centerline_length = 0
reach_boundary = 150
limit_point_distance = 250
response = sword.get_AOI_of_centerline(SWORD_version, SWORD_reach_id, longitude, latitude, centerline_length, reach_boundary, limit_point_distance)
Output of JSON response:
{
'SWORD_version': 'v17b',
'geometry': [
[-114.05244351959287, 58.64645015946438],
[-114.05675119503604, 58.64608427335615],
[-114.06089422110055, 58.645883944556815],
[-114.06519151979022, 58.6460224422425],
...,
[-114.0467759407257, 58.64520687129961],
[-114.05035151839724, 58.646437231918625],
[-114.05244351959287, 58.64645015946438]
],
'messages': [],
'num_points': 143
}