1) download waze-server
java -jar waze-server.jar server
curl -v "http://localhost:8080/waze/routesWithDirections?end=156+5th+Avenue%2C+New+York%2C+NY+10010&start=6+East+57th+Street%2C+New+York%2C+NY+10022" -H "Accept: application/json"
documentation (full list of supported requests) - link
list of all end-points with curl examples - link
using the the waze service (no server) - link
java -Ddw.server.applicationConnectors[0].port=9090 -Ddw.server.adminConnectors[0].port=9091 -jar waze-server.jar server
run the server with custom config (see conf.yml for example):
java -jar waze-server.jar.jar server conf.yml