mizzou-capstone-capybaras-2022 / capybara-campus-crawl

The main monorepo for the Mizzou CS Senior Capstone project.
MIT License
1 stars 3 forks source link

edit node object in databse so there is an "isoutside" #42

Closed rjgxfv closed 2 years ago

rjgxfv commented 2 years ago

To be able to dynamically change the outside distances, the node object needs to have a "isoutside" element also. In teh routing algorithm it will change the distance based on cuser parameters

rjgxfv commented 2 years ago

Also, to store the coordinates to give to the frontend, could there be another attribute that is an array of coordinates. The first element being the start, the last being teh finish, and any intermediate points(ORS gives intermediate points to path around things)

rjgxfv commented 2 years ago

The Example JSON is here: https://github.com/mizzou-capstone-capybaras-2022/capybara-campus-crawl/blob/routing-test/mock-server/mocked-data/mock_edges_with_coords.json

rjgxfv commented 2 years ago

I added 'isInside' field and 'coords' field isInside: If outside distance(from ORS), then 1, else 0 coords: Under features/geometry/coordinates JSON.get("features").get("geometry").get("coordinates")

rjgxfv commented 2 years ago

The FromToAction elemnt in the edge JSON will list if it is an outside node

The PathShape will list the coordinates of the path