functional rest calling.
TODO: read returned Json and convert it to map of coordinates