Added support for the location api.