Design and implementation of a positioning service in the context of smart cities