An implementation of the Java client for the Data API, using a pure vector approach for autonomous vehicle navigation. Up to 8 cars can be seeded on the map. Each will run a vector search using its starting and ending points. The resulting road segments are returned via a Euclidean-based similarity. Each car then takes the best path that it can to drive on the roads to their destination.
- Cars drive through each other.
- If they are not currently on a vector, cars may:
- drive over lawns.
- drive through buildings.
- drive on the wrong side of the road.
- Java 21 (JRE)
- Environment variables
ASTRA_DB_ENDPOINT
ASTRA_DB_TOKEN
- Maven
The pom.xml file can be adjusted to build with earlier versions of Java, but it is not recommended to go below 17.
mvn clean install
java -jar target/carnavigation-0.0.1-SNAPSHOT-jar-with-dependencies.jar