Location API

Adds the location API.