Codename One Adds Portable Routing API to Simplify In-App Navigation

Codename One, an open-source framework for building cross-platform apps in Java or Kotlin, has introduced a new routing module via pull request #5480. The update adds a com.codename1.maps.routing package that models road geometry, waypoints, distances, durations, and encoded polylines. Developers can use a simple two-line call for basic route display or a callback-based API for advanced needs like ETAs, alternatives, and custom styling. The default routing backend is the open-source OSRM demo server, which requires no API key but is not intended for production use. The design abstracts the service layer so application code works with a standard Route model regardless of the underlying routing provider.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in