Implemented basic location api