You need to have a translation layer which translates the coordinates your alg gives you to the coordinates on the map.

// Json