Should we build our own route optimization or use an API?

Build it if your constraint set is small and stable, and you want to own a solver long term. Buy it if your constraints keep growing, if a plan has to come back inside a user interaction, or if you would rather your engineers worked on your product. Reaching production parity with a mature routing engine is typically an 18 to 24-month project, and the constraint set keeps moving while you build.